mysql_real_escape_string  to mysqli_real_escape_string()

mysql_real_escape_string being deprecated in favor of mysqli_real_escape_string()