note 95915 added to function.mysql-real-escape-string

From: Date: Thu, 28 Jan 2010 15:05:07 +0000
Subject: note 95915 added to function.mysql-real-escape-string
Groups: php.notes 
Request: Send a blank email to php-notes+get-165458@lists.php.net to get a copy of this message
If you want to make sure that the ID you're using to do a query is a number, use sprint() of (int) or intval(), but don't use mysql_real_escape_string. There is no difference between ISO-8859-1's number 10 and UTF-8's number 10. ---- Server IP: 187.16.23.134 Probable Submitter: 189.58.3.221 ---- Manual Page -- http://www.php.net/manual/en/function.mysql-real-escape-string.php Edit -- https://master.php.net/note/edit/95915 Del: integrated -- https://master.php.net/note/delete/95915/integrated Del: useless -- https://master.php.net/note/delete/95915/useless Del: bad code -- https://master.php.net/note/delete/95915/bad+code Del: spam -- https://master.php.net/note/delete/95915/spam Del: non-english -- https://master.php.net/note/delete/95915/non-english Del: in docs -- https://master.php.net/note/delete/95915/in+docs Del: other reasons-- https://master.php.net/note/delete/95915 Reject -- https://master.php.net/note/reject/95915 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#165458) next »