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

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -