note 24008 deleted from function.mysql-escape-string by aidan
| From: | aidan@php.net | Date: | Wed, 11 Aug 2004 14:08:27 +0000 |
| Subject: | note 24008 deleted from function.mysql-escape-string by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-74455@lists.php.net to get a copy of this message | ||
Note Submitter: david AT davidquintana DOT com
----
If magic_quotes_gpc is set to "On" in php.ini and you use mysql_escape_string, you will
have extra '\' inserted, for example after an apostrophy. In essance you are adding
escapes twice.
Example:
mysql_escape_string("let's") equals "let\\\'s" when magic_quotes_gpc
is on.
mysql_escape_string("let's") equals "let\'s" when magic_quotes_gpc is
off.