Jump to content

Unexpected "Unexpected"


christofurr

Recommended Posts

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

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.