php - How much important is it to develop different database specific escaping mechanisms for different projects? -
as know, magic quotes in php deprecated, done discourage relying on feature preventing sql injection , encourage developers develop database specific escaping mechanisms.[source: php.net] neccessary?
if yes,
why? why can't use functions mysql_real_escape_string()
, addslashes()
, stripslashes()
achieve same thing instead of developing different escaping mechanisms?
an answer example appreciated. thanks
mysql_real_escape_string()
database specific escaping mechanism :)
if choosing database layer new project, sure take @ pdo prepared statements automatically take care of necessary escaping.
Comments
Post a Comment