I'm having to update my PHP for the new format but I'm confused with the codes that are given online. At the moment I am using plain mysql but I would like to update it to mysqli. Here is an example of one peice of code that I have:
$checked= mysql_real_escape_string($_REQUEST["checked"]);
I thought that it may just be a case of changing it the mysqli_real_escape_string but after looking at a few example codes I found that this is not the only solution - mysqli::real_eacape and mysqli->real_escape are also listed. Which one is correct?
Thank You