Are dynamic mysql queries with sql escaping just as secure as prepared statements?
问题 I have an application which would greatly benefit by using dynamic mysql queries in combination with mysql (mysqli) real escape string. If I ran all data received from the user through mysql real escape would it be just as secure as using mysql prepared statements? 回答1: Definitely NO. While question in the title is ambiguous and can be interpreted as "Are dynamic mysql queries with every it's part properly formatted ..." and thus have a positive answer, the question in the body is not : If I