I searched through and viewed lots of questions before I asked. I did see this on Dagon, however it didn't mention the sanitize function. As I stated I am not a PHP expert, and I didn't know if that would make a difference in the syntax. Sorry for the Duplicate.
I am not a PHP expert, not even a frequent user, but I am trying to correct some PHP code for a client. I didn't write this code, I am just trying to resolve the errors. Can someone point me in the right direction?
Error Code -
PHP Warning: mysqli_real_escape_string() expects exactly 2 parameters, 1 given in /home5/tfgfouze/public_html/shop/shopping/index.php on line 62
PHP Code -
function sanitize($var){
return mysqli_real_escape_string(str_replace("`","\`", $var));
}