note 20899 added to function.addslashes

From: Date: Sat, 20 Apr 2002 23:01:09 +0000
Subject: note 20899 added to function.addslashes
Groups: php.notes 
Request: Send a blank email to php-notes+get-29621@lists.php.net to get a copy of this message
PLEASE HELP! Anyone knows why that won't work? I tried virtually everything (including the use of str_replace, working on a copy of the var, etc) and it just won't add slashes to my string. Therefore, I can't save it into the database without getting an error. -----<cut> $max=count($fields); for ($count=0;$count<$max;$count++) { $fields[$count][value]=addslashes($fields[$count][value]); } -----</cut> It would be great if you could reply to my email but just here will do the trick. Thanks a lot. -- http://www.php.net/manual/en/function.addslashes.php http://master.php.net/manage/user-notes.php?action=edit+20899 http://master.php.net/manage/user-notes.php?action=delete+20899 http://master.php.net/manage/user-notes.php?action=reject+20899

« previous php.notes (#29621) next »