-2

I know that this question has been asked so many times but there are a lot of different answers that's confusing me. I have just one parameter that's passing through url and it is in a sql query, so a GET request and i really don't know how to protect myself from SQL injection. How can I do?

Giacomo Cerquone
  • 2,352
  • 5
  • 24
  • 33

1 Answers1

-1
$var = mysql_escape_string($_GET['your_param']);

http://br1.php.net/manual/en/function.mysql-escape-string.php

wiLLiamcastrO
  • 238
  • 3
  • 13