note 90695 deleted from function.htmlentities by danbrown

From: Date: Tue, 05 May 2009 12:52:25 +0000
Subject: note 90695 deleted from function.htmlentities by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-154224@lists.php.net to get a copy of this message
Note Submitter: george dot dobre at hellgaming dot ro ---- <?php // Secure $_GET function secureGet($string) { $string = htmlentities($string, ENT_QUOTES); return($string); } $query = mysql_query("SELECT * FROM something"); if($query) { while($row = mysql_fetch_array($query, MYSQL_ASSOC)) { echo secureGet($row['something_id']); } } ?>

« previous php.notes (#154224) next »