php – Convert mysql_escape_string code to mysqli_escape_string code

php – Convert mysql_escape_string code to mysqli_escape_string code

In the second function, you needed to pass $con into the, function.

If you want to clean up an input string I think its better to use the command: mysqli_real_escape_string()
I think it is enough to write:

$string = mysqli_real_escape_string($con,$string);

php – Convert mysql_escape_string code to mysqli_escape_string code

Leave a Reply

Your email address will not be published. Required fields are marked *