I am having few problems with the PHP upgrade. Before, I was using PHP 5.2.0 and below; now I have upgraded to PHP 5.5.0. A few of my snippets are not running as I expected.
mysqli_real_escape_string
needs two arguments to work:
Syntax:
mysqli_real_escape_string($connection,$escapestring);
You need to give it the connection variable. This looks like
$connection=mysqli_connect("host","my_user","my_password","my_db");
You should refresh your PHP knowledge.
An alternative method would be to use a database object so you don’t have to pass in the connection details each time.