Mohammadali mirahamed Mohammadali mirahamed - 5 months ago 14
PHP Question

how to use " mysqli_real_escape_string " in PHP Prepared Statements?

I am using PHP Prepared Statements mysqli but i can't find below code


How can i use above code in PHP Prepared Statements mysqli .*
is it something like this ??



Posting as a community wiki. I don't want rep for this.

There's no point in using both mysqli_real_escape_string() and a prepared statement.

It's one or the other.

Read the manual on using a MySQLi_ prepared statement:

Yet... you can use both, just not both together for the same instance.

  • Just stick to a prepared statement for them all and your world will be a better place.