Guest Posted December 14, 2002 Posted December 14, 2002 This is the message: Parse error: parse error in /header.php on line 56 And this is the code I changed: <table border="0" width="760" cellspacing="0" cellpadding="0"> <tr class="header"> <td><table width="760" border="0" cellspacing="0" cellpadding="0" height="114" align="center"><tr><td height="58"><img src="top2.jpg" alt="top"></td></tr><tr><td height="34"><img src="mid5.jpg" alt="mid"></td></tr><tr><td height="22"><img src="bot2.jpg" alt="bot"></td></tr></table><table width="760" border="0" cellspacing="0" cellpadding="0" height="38" align="center"><tr><td bgcolor="white"><center><img src="gifts.jpg" alt="gifts"></center></td></tr></table></td></tr> </table> Any ideas what the parse error is? And what is a parse error by definition?
Guest Posted December 14, 2002 Posted December 14, 2002 ah okay I see what I now did wrong. I wanted to take out the my account, shopping cart etc. images in the header but I took out as well the my account, shopping cart etc. text as well. Once I found that and put it back no more parse error. So that problem is solved. I still would like to know the definition of a parse error besides meaning that you messed up. :wink:
mattice Posted December 14, 2002 Posted December 14, 2002 I still would like to know the definition of a parse error besides meaning that you messed up. :wink: A parse error means the php code encountered a problem while parsing your code. That in turn means there is a 'spelling' error of some kind. It ussually will give you additional info.. like 'Expecting such and such on line so and so'. General rules on parse errors: [*]Ignore ALL errors printed below the first one. They are likely to be a result of the first error. [*]Also check the lines ABOVE the line number stated. [*]Take a drink, walk away for 5 mins and try again if you can't find it at first :) Mattice "Politics is the art of preventing people from taking part in affairs which properly concern them"
Guest Posted December 14, 2002 Posted December 14, 2002 ah okay, well thanks again mattice. I understand it now. Learning about PHP has not been as hard as I have prior experience with Perl and of course HTML etc.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.