Why mysql_real_escape_string not work on MySQLi ?
When i use MySQL , i can use this code.
$test = mysql_real_escape_string($_POST[test]);
But When i update to use MySQLi. I tried to use
$test = mysql_real_escape_string($_POST[test]);
But not work.
How can i use mysql_real_escape_string on MySQLi ?
if cannot use mysql_real_escape_string on MySQLi , How can i protect SQL Injection ?
Now i use
$test = $_POST[test];
It's very bad for SQL Injection.
 
    