note 116881 added to function.mysql-escape-string

From: Date: Sun, 15 Mar 2015 02:54:56 +0000
Subject: note 116881 added to function.mysql-escape-string
Groups: php.notes 
Request: Send a blank email to php-notes+get-201944@lists.php.net to get a copy of this message
You can use this function safely with your MySQL database queries if and only if you are sure that your database connection is using ASCII, UTF-8, or ISO-8859-* and that the backslash is your database's escape character. If you're not sure, then use mysqli_real_escape_string instead. This function is not safe to use on databases with multi-byte character sets. The only benefit of this function is that it does not require a database connection. ---- Server IP: 72.52.91.14 Probable Submitter: 71.237.216.101 ---- Manual Page -- http://php.net/manual/en/function.mysql-escape-string.php Edit -- https://master.php.net/note/edit/116881 Del: integrated -- https://master.php.net/note/delete/116881/integrated Del: useless -- https://master.php.net/note/delete/116881/useless Del: bad code -- https://master.php.net/note/delete/116881/bad+code Del: spam -- https://master.php.net/note/delete/116881/spam Del: non-english -- https://master.php.net/note/delete/116881/non-english Del: in docs -- https://master.php.net/note/delete/116881/in+docs Del: other reasons-- https://master.php.net/note/delete/116881 Reject -- https://master.php.net/note/reject/116881 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#201944) next »