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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Don’t use
FILTER_SANITIZE_SPECIAL_CHARSandmysql_escape_string. Use PDO. With prepared statements you don’t need to escape inputs manually.