Re: Problem, please help!

From: Date: Sun, 21 Mar 2004 13:11:05 +0000
Subject: Re: Problem, please help!
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-33582@lists.php.net to get a copy of this message
> try writing it like > $sql = "UPDATE round1 > SET game1='" . $game1 . "', > game2='" . $game2 . "', > game3='" . $game3 . "', > game4='" . $game4 . "', > game5='" . $game2 . "', > game6='" . $game6 . "', > game7='" . $game7 . "', > game8='" . $game8 . "', > misc='y' > WHERE username = '" . $sidarray[0] . "'"; > > matt Single quotes around variables within a double quoted statement works. John

« previous php.db (#33582) next »