Re: parse error, unexpected T_ENCAPSED_AND_WHITESPACE

From: Date: Mon, 14 Mar 2005 23:57:15 +0000
Subject: Re: parse error, unexpected T_ENCAPSED_AND_WHITESPACE
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-210718@lists.php.net to get a copy of this message
Chris W. Parker wrote: > Chris W. Parker <> > on Monday, March 14, 2005 3:15 PM said: > > >>>Line 82 is: >>>print '<td><input type=\'checkbox\' name=\'status[' . >>>$row["profileID"] . ']' . "' >>>value='true'/></td>\n"; >> >>Very likely the problem is not on line 82, but rather before it. Line >>82 is just where the PHP parser finally gets screwed up. > > > Ohh .. and if i read it more fully the first time I would have seen that > you've got some funky in/out quoting problems and that you're not > escaping the quotes wrapping 'true'. :) > Quotes look ok to me? God bless VIM (even on this old windows box) :) In any case Chris' original suggestion is probably right... it's likely that the last place you used quotes *before* line 82 is missing a closing quote. -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-general&w=2 STFM | http://php.net/manual/en/index.php STFW | http://www.google.com/search?q=php LAZY | http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.general (#210718) next »