本文介绍了PDO语句是否自动转义?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
PHP PDO语句是自动转义的,还是仅准备好的语句?
Are PHP PDO statements automatically escaped, or only prepared statements?
例如,假设 mysql_query,因为不再有自尊的PHP程序员使用它了.哦,等等..该死.好吧,这是它唯一提到的地方.)
Otherwise, you get little to no protection over mysqli_query and friends. (I refuse to even mention mysql_query, because no self-respecting PHP programmer uses it anymore. Oh, wait..damn. Well, that's the only mention it gets here.)
这篇关于PDO语句是否自动转义?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!