addslashes vs mysql_escape_string
Posted: Sat Jul 17, 2004 6:49 am
Hi
If I do addslashes() on a string before inserting it into my db, is it the same as doing mysql_escape_string() before insertion?
And if I have magic_quotes_gpc set in the php-config file, do I have to do addslashes/ mysql_escape_string() and stripslashes when interacting with the db?
Regards tores
If I do addslashes() on a string before inserting it into my db, is it the same as doing mysql_escape_string() before insertion?
And if I have magic_quotes_gpc set in the php-config file, do I have to do addslashes/ mysql_escape_string() and stripslashes when interacting with the db?
Regards tores