note 40371 deleted from function.mysql-escape-string by aidan

From: Date: Wed, 11 Aug 2004 14:06:13 +0000
Subject: note 40371 deleted from function.mysql-escape-string by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-74444@lists.php.net to get a copy of this message
Note Submitter: bkimble@ebaseweb.com ---- here is a quick function to mysql_escape_string all of your string variables inside of an object. function EscapeAll() { foreach (get_object_vars($this) as $varname => $varvalue) { if (is_string($this->{$varname})) { $this->{$varname} = mysql_escape_string($this->{$varname}); } } }

« previous php.notes (#74444) next »