note 5746 deleted from mysql_query by ronabop

From: Date: Sat, 12 Aug 2000 22:33:11 +0000
Subject: note 5746 deleted from mysql_query by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-1705@lists.php.net to get a copy of this message
I'm trying to insert text values into a table from a form. It's possible for users to enter a " into the field, and this causes the insert to break. I've tried doing: values ("".$foo."") and: values ("$foo") These both work fine, but if $foo contains a " all hell breaks loose. Any suggestions?

« previous php.notes (#1705) next »