I am using FILTER_SANITIZE_SPECIAL_CHARS in my php code to sanitize the inputs.
Do i really need to user mysql_escape_string? Can i prevent sql injection and other attacks from filter functions only?
I am using FILTER_SANITIZE_SPECIAL_CHARS in my php code to sanitize the inputs.
Do i really need to user mysql_escape_string? Can i prevent sql injection and other attacks from filter functions only?
Don't use FILTER_SANITIZE_SPECIAL_CHARS
and mysql_escape_string
. Use PDO. With prepared statements you don't need to escape inputs manually.