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? ??? Quote Link to comment 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 Quote Link to comment 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\"> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.