odetron Posted February 11, 2007 Share Posted February 11, 2007 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 More sharing options...
Destruction Posted February 11, 2007 Share Posted February 11, 2007 <a href="/community"> This isn't escaped properly. Please check any doublequotes are correctly escaped as \" if needed Dest Link to comment https://forums.phpfreaks.com/topic/38039-t_constant_encapsed_string/#findComment-182108 Share on other sites More sharing options...
GingerRobot Posted February 11, 2007 Share Posted February 11, 2007 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\"> Link to comment https://forums.phpfreaks.com/topic/38039-t_constant_encapsed_string/#findComment-182112 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.