note 24869 added to function.mysql-escape-string

From: Date: Fri, 30 Aug 2002 18:42:20 +0000
Subject: note 24869 added to function.mysql-escape-string
Groups: php.notes 
Request: Send a blank email to php-notes+get-36055@lists.php.net to get a copy of this message
About magic_quotes_gpc and data scrubbing: It is usually the best practice to have a common function called at the beginning of your scripts that "normalizes" the data to what you expect. For me, that's getting rid of magic quotes effects on my incoming data if it's turned on, or do nothing to if it's turned off. This may seem the long way around, but my scripts work regardless of what the setting on the server are, or if they change. -- http://www.php.net/manual/en/function.mysql-escape-string.php http://master.php.net/manage/user-notes.php?action=edit+24869 http://master.php.net/manage/user-notes.php?action=delete+24869 http://master.php.net/manage/user-notes.php?action=reject+24869

« previous php.notes (#36055) next »