Can mysql_real_escape_string ALONE prevent all kinds of sql injection ?
问题 Possible Duplicate: SQL injection that gets around mysql_real_escape_string() I havent seen any valuabe or not outdated info on this. So, there is this question: Does mysql_real_escape_string() FULLY protect against SQL injection? Yet it is very outdated(its from '09), so as of php 5.3 and mysql 5.5 in '12, does it protect fully ? 回答1: mysql_real_escape_string ALONE can prevent nothing. Moreover, this function has nothing to do with injections at all. Whenever you need escaping, you need it