Re: Quotes are getting in my way

From: Date: Sat, 06 Oct 2001 20:55:22 +0000
Subject: Re: Quotes are getting in my way
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-70253@lists.php.net to get a copy of this message
"here doc" I looked in the documentation and couldn't find it. Can you help? THANKS!! Roy "Cc Zona" <cczona@nospam.invalid> wrote in message news:20011006202505.94382.qmail@pb1.pair.com... > In article <20011006200000.84499.qmail@pb1.pair.com>, > roydallas61@nospam.hotmail.com (Rw) wrote: > > > PRINT '" cols="52"></textarea><br><br>'; > > sqlstatement = $sqlstatement . $t1 . $q[$i] . $t1 . $t2; > > $i++; > > ENDWHILE; > > > > The statement causing the problem is: > > sqlstatement = $sqlstatement . $t1 . $q[$i] . $t1 . $t2; > > > > Any ideas? > > You're missing a dollar sign. "sqlstatement" is a variable, not a > constant. (You can also shorten the statement a bit by changing your > assignment operator...) > > $sqlstatement.=$t1 . $q[$i] . $t1 . $t2; > > As for quotes being a problem, have you considered using "here doc" syntax? > > -- > CC

« previous php.general (#70253) next »