Possible Duplicate:
Are mysql_real_escape_string() and mysql_escape_string() sufficient for app security?
So how do you protect against it now magic qoutes is deprecated.
is
mysql_real_escape_string();
enough?
Possible Duplicate:
Are mysql_real_escape_string() and mysql_escape_string() sufficient for app security?
So how do you protect against it now magic qoutes is deprecated.
is
mysql_real_escape_string();
enough?
good place to start http://en.wikibooks.org/wiki/PHP_Programming/SQL_Injection
It appears thats all you would need:
This function must always (with few exceptions) be used to make data safe before sending a query to MySQL.