Jump to content

T_CONSTANT_ENCAPSED_STRING??


odetron

Recommended Posts

I have never seen this error before:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/www/phimil.freehostia.com/Test/index.php on line 168

$pg2 = "<fieldset><legend><b>mission, complete!</b> - <i>January 6, 2007</i></legend><div class='infld'><BR>This site is 100% completed! Finnaly the downloads section is back! It took awhile to develope because it needed extra CSS to finish. Check it out.! Also feal free to register in the un-completed forums. ( I still need to upload some images) </a></div></fieldset><fieldset><legend><b>Forum is Back!</b> - <i>December 28, 2006</i></legend><div class='infld'><BR>w00t! this site has more of a use now! Check out our forums <a href="/community">Here!</a></div></fieldset><fieldset><legend><b>Project Resumed!</b> - <i>December 28, 2006</i></legend><div class='infld'><BR>The current 3D Project has started again! The first screen shots should be expected late january.</div></fieldset>";

so, whats wrong with this? ???

Link to comment
https://forums.phpfreaks.com/topic/38039-t_constant_encapsed_string/
Share on other sites

Your problem is with this part:

<a href="/community">

 

Was community supposed to be a variable?

 

Either way, if you use the same quotes as are containing the entire string to be echoed, you'll need to escape them with a backslash:

<a href=\"community\">

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.