3
I can use the function mysql_real_escape_string
on a website built in mysqli_connect
? And if yes makes a difference or the protection would be less?
Or should I use mysqli_escape_string
? Because when I put the mysqli_escape_string
made some mistakes when it went to make a mysqli_query
..
mysqli_escape_string() expects exactly 2 parameters, 1 given in ....
BUT when using the mysql_escape_string
he returns
mysql_escape_string(): This function is deprecated; use mysql_real_escape_string()
You should use mysql_real_escape_string
?
always have to put the connection together? in my case >>
$painel_log = mysqli_real_escape_string($conn, $_POST['painel_log']);
– Pedro Quezado
@Pedroquezado When the mysqli functions are used the first argument is "always" the connection.
– Bia
Ahhhhh entendiiii
– Pedro Quezado
asauhsuhau VLWWW
– Pedro Quezado