note 69452 added to function.mysql-real-escape-string
| From: | brian dot folts at gmail dot com | Date: | Wed, 06 Sep 2006 16:25:23 +0000 |
| Subject: | note 69452 added to function.mysql-real-escape-string | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-116767@lists.php.net to get a copy of this message | ||
mysql_real_escape_string is a bit annoying when you need to do it over an array.
function mysql_real_escape_array($t){
return array_map("mysql_real_escape_string",$t);
}
this one just mysql_real_escape's the whole array.
ex) $_POST=mysql_real_escape_array($_POST);
and then you dont have to worry about forgetting to do this.
----
Server IP: 216.194.113.175
Probable Submitter: 67.155.112.251
----
Manual Page -- http://www.php.net/manual/en/function.mysql-real-escape-string.php
Edit -- https://master.php.net/note/edit/69452
Del: integrated -- https://master.php.net/note/delete/69452/integrated
Del: useless -- https://master.php.net/note/delete/69452/useless
Del: bad code -- https://master.php.net/note/delete/69452/bad+code
Del: spam -- https://master.php.net/note/delete/69452/spam
Del: non-english -- https://master.php.net/note/delete/69452/non-english
Del: in docs -- https://master.php.net/note/delete/69452/in+docs
Del: other reasons-- https://master.php.net/note/delete/69452
Reject -- https://master.php.net/note/reject/69452
Search -- https://master.php.net/manage/user-notes.php