I am setting up a couple of MySQLi multi_query function. I know you can't use prepared statements with multi_query, so I wanted to know what security precautions is recommended to use with muti_query.
real_escape_string()?
I am setting up a couple of MySQLi multi_query function. I know you can't use prepared statements with multi_query, so I wanted to know what security precautions is recommended to use with muti_query.
real_escape_string()?
In fact, [mysqli_]real_escape_string() has nothing to do with security. It's more like syntax formatter.
For the complete guide on securing queries refer to this my answer: In PHP when submitting strings to the database should I take care of illegal characters using htmlspecialchars() or use a regular expression?
Pretty much yes. Especially given, that multi_query() allows for 'exploits of a mum' type of injection. So yeah: