note 32998 added to function.mysql-escape-string

From: Date: Fri, 13 Jun 2003 10:50:10 +0000
Subject: note 32998 added to function.mysql-escape-string
Groups: php.notes 
Request: Send a blank email to php-notes+get-50274@lists.php.net to get a copy of this message
From the MYSQL manual: The string in from is encoded to an escaped SQL string, taking into account the current character set of the connection. The result is placed in to and a terminating null byte is appended. Characters encoded are NUL (ASCII 0), \n', \r', \', '', `"', and Control-Z (see section 6.1.1 Literals: How to Write Strings and Numbers). (Strictly speaking, MySQL requires only that backslash and the quote character used to quote the string in the query be escaped. This function quotes the other characters to make them easier to read in log files.) ---- Manual Page -- http://www.php.net/manual/en/function.mysql-escape-string.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32998 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32998&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32998&report=yes

« previous php.notes (#50274) next »