christofurr Posted July 16, 2007 Share Posted July 16, 2007 These are lines 207 and 208 of a PHP script that outputs the appropriate stylesheet for the detected browser type. I get the error "Parse error: parse error, unexpected '{' in /homepages/browser.php5 on line 208". What am I doing wrong? The entire PHP script is 215 lines long. Let me know if you need me to post it. if ($br->Name=="MSIE") {echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"ie.css\" />" . "Test IE";} Link to comment https://forums.phpfreaks.com/topic/60291-unexpected-unexpected/ Share on other sites More sharing options...
trq Posted July 16, 2007 Share Posted July 16, 2007 We need the prior ten or so lines. Link to comment https://forums.phpfreaks.com/topic/60291-unexpected-unexpected/#findComment-299905 Share on other sites More sharing options...
paul2463 Posted July 16, 2007 Share Posted July 16, 2007 no parse error for just those two lines, as Thorpe says the fault must lie if the preceeding lines Link to comment https://forums.phpfreaks.com/topic/60291-unexpected-unexpected/#findComment-299906 Share on other sites More sharing options...
christofurr Posted July 16, 2007 Author Share Posted July 16, 2007 Nevermind. It was a spelling error. Thanks for looking. Link to comment https://forums.phpfreaks.com/topic/60291-unexpected-unexpected/#findComment-299929 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.