Re: Update still not working

From: Date: Wed, 02 Aug 2000 19:21:10 +0000
Subject: Re: Update still not working
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-1732@lists.php.net to get a copy of this message
$query = "UPDATE $table SET Monday = '$mond', Tuesday = '$tuesd' , Wednesday = '$wedd' , Thursday = '$thurd' , Friday = '$frid' , Saturday = '$satd' WHERE Number = $numb"; try breaking the " " sections when inserting variable content between ' ' quotes: $query = "Update $table SET Monday = '" .$mond. "', Tuesday = '" .$tuesd. "', .... etc PHP takes the single quote to make the $ a literal. HtH, Erik

« previous php.db (#1732) next »