-6

I used that query in PHP but it does not work

mysql_real_escape_string();

so what should i do ??

Is that is the previous version of PHP so please give me a solution of newer function . Without your answer my project is on pending .

melpomene
  • 84,125
  • 8
  • 85
  • 148

2 Answers2

1
$firstname = mysqli_real_escape_string($con, $_POST['firstname']);

Try this one

0

First, check your applications server version. It seems like it has been deprecated :

Check it out, you will get the answer : http://php.net/manual/en/function.mysql-real-escape-string.php

mrJ0ul3
  • 126
  • 7