note 95708 modified in function.mysql-real-escape-string by danbrown

From: Date: Sun, 17 Jan 2010 17:17:11 +0000
Subject: note 95708 modified in function.mysql-real-escape-string by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-165053@lists.php.net to get a copy of this message
Here's an easy way to escape the whole $_REQUEST array: <?php foreach ($_REQUEST as &$x) { mysql_real_escape_string($x); } ?> --was-- Here's an easy way to escape the whole $_REQUEST array: foreach ($_REQUEST as &$x) { mysql_real_escape_string($x); } http://php.net/manual/en/function.mysql-real-escape-string.php

« previous php.notes (#165053) next »