Possible Duplicate:
Best way to stop SQL Injection in PHP
I would like to know which functions is best to use to prevent MySQL injections
There are plenny of functions I can use to prevent sql injections, such as:
mysql_real_escape_string
mysqli_real_escape_string
addslashes
- casting values (intval etc...) for numbers
htmlentities
withENT_QUOTES
- or simply remove the
'
or"
I want to standardize my code using the best and faster anti-SQL-injections method and I would like to know which one should I use for high traffic sites.