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
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">'

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.