note 26520 added to function.mysql-escape-string
| From: | buddha at rack1 dot php dot net | Date: | Sat, 02 Nov 2002 16:46:17 +0000 |
| Subject: | note 26520 added to function.mysql-escape-string | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-38905@lists.php.net to get a copy of this message | ||
Was using mysql_real_escape_string to escape HTML and numeric data. I was surprised when $data =
"0" (that's a zero you known ASCII x30) was treated as a NUL. The workaround was to
use AddSlashes.
--
http://www.php.net/manual/en/function.mysql-escape-string.php
http://master.php.net/manage/user-notes.php?action=edit+26520
http://master.php.net/manage/user-notes.php?action=delete+26520
http://master.php.net/manage/user-notes.php?action=reject+26520