perfectly.flawed Posted February 16, 2008 Share Posted February 16, 2008 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 More sharing options...
nogray Posted February 16, 2008 Share Posted February 16, 2008 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 https://forums.phpfreaks.com/topic/91349-parse-error-syntax-error-unexpected/#findComment-468113 Share on other sites More sharing options...
perfectly.flawed Posted February 16, 2008 Author Share Posted February 16, 2008 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 https://forums.phpfreaks.com/topic/91349-parse-error-syntax-error-unexpected/#findComment-468117 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.