note 83578 rejected from function.mysql-real-escape-string by danbrown
| From: | danbrown@php.net | Date: | Wed, 23 Jul 2008 15:53:05 +0000 |
| Subject: | note 83578 rejected from function.mysql-real-escape-string by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-142613@lists.php.net to get a copy of this message | ||
Note Submitter: John rocks your face on a schedule
----
Why make things more complex than need be? More code, more errors.
<?
function sanitize_input(&$request) {
$request = mysql_real_escape_string(strip_tags($request));
}
array_walk_recursive($_REQUEST, 'sanitize_input');
?>