Jump to content

Parse error: syntax error, unexpected '<' in index.php on line 15


perfectly.flawed

Recommended Posts

Ok so I have looked over this code repeatedly, read forums discussing similar topics, compared it with other codes to try and find possible problems --- ALL with no luck  :'( So I am still receiving the following error:

 

"Parse error: syntax error, unexpected '<' in /index.php on line 15"

 

If anyone could please help me solve this error it would be greatly appreciated.

 

Link to comment
https://forums.phpfreaks.com/topic/91349-parse-error-syntax-error-unexpected/
Share on other sites

You can't include HTML directly in your PHP, you need to use echo

this
<table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">

should be this

echo '<table border="0" width="100%" cellspacing="5" cellpadding="2"><tr><td class="main" valign="top">'

ok so I did that and now I am not receiving that specific error, but I am receiving a new one

 

Parse error: syntax error, unexpected ')', expecting ',' or ';' in /index.php on line 15

 

So obviously I don't have only one problem with this script. I didn't even write the script, I added a little tiny part of it without removing anything. That 'echo' thing was NOT there before.. so apparently now I have a bracket somewhere it shouldn't be.

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.