I have a php program that uses cookies to store data across pages and redirects. I want to use mysql_real_escape_string() before sending them to my server, so far my code looks like this
$master_string = $_COOKIE["master_string"];
$order_name = mysqli_real_escape_string($_COOKIE["name"]);
$order_mail = $_COOKIE["mail"];
echo $order_name;
I have already checked that my sqli connection has been made, the resulting data inserted to my table is blank and so is the echo.