merebel Posted January 3, 2007 Share Posted January 3, 2007 I am getting this error and I am lost as to what is causeing itParse error: syntax error, unexpected T_LNUMBER in /home/merebel/public_html/include/style2.php on line 63[code]<?function print_header_small($title=''){ print(" <head> <title>$title</title> <link rel='stylesheet' href='/include/alderaanbase.css'> </head> <body bgcolor=black text=black marginheight=0 marginwidth=0> ");}function print_header($title='Alderaan Base'){ print(" <head> <title>$title</title> <link rel='stylesheet' href='/include/alderaanbase.css'> </head> <body bgcolor=black text=black marginheight=0 marginwidth=0> <table width=100% height=100% cellspacing=0 cellpadding=5> <tr> <td class=header align=left height=110><img src='/images/alderaanbase1.jpg'></td> </tr> <tr> <td> <table width=100% cellspacing=10 cellpadding=10 border=0 height=100%> <tr> <td class=bodyline width=150 valign=top> <a class=mainmenu href='/'>Home</a><br> <a class=mainmenu href='/calendar/eventslist.php'>Upcoming Events</a><br> <a class=mainmenu href='/events.php'>Past Events</a><br> <a class=mainmenu href='/gallery2/main.php?g2_itemId=79'>Photo Gallery</a><br> <a class=mainmenu href='/join.php'>Join the Rebellion!</a><br> <a class=mainmenu href='/reference'>Costuming Resources</a><br> <a class=mainmenu href='/forum'>Forum</a><br> <a class=mainmenu href='/members.php'>Members</a><br> <a class=mainmenu href='/honorary.php'>Honorary Base Members</a><br> <P> </p> <P> </p> <P> </p> <a class=mainmenu href='/invite.php'>To Invite Alderaan Base to an event or to find out more email us</a><br> <P> </p> <P> </p> <P> </p> </td> <td width="674" valign=top class=row1> <P> </p> </td> <td width="250" valign=top class=tablewhite> <P> <a href='/photos/'><img border=0 width=250 height=340 src='images/rebelspreview.jpg'></a><br></P> ");} function print_footer(){ print(" </td> </tr> </table> </tr> </table> </body> </html> ");}function print_footer_small(){ print "</body></html>";} function fix_url($linkurl) { if(substr($linkurl,0,4) == "http" || substr($linkurl,0,5) == "https") { $fixed_url = $linkurl; } else { $fixed_url= "http://" . $linkurl; } return $fixed_url; } [/code]ThanksKeith Quote Link to comment https://forums.phpfreaks.com/topic/32630-solved-help-parse-error-syntax-error-unexpected-t_lnumber/ Share on other sites More sharing options...
forumnz Posted January 3, 2007 Share Posted January 3, 2007 Shouldnt you have "" Quote Link to comment https://forums.phpfreaks.com/topic/32630-solved-help-parse-error-syntax-error-unexpected-t_lnumber/#findComment-151807 Share on other sites More sharing options...
merebel Posted January 3, 2007 Author Share Posted January 3, 2007 where ??? Quote Link to comment https://forums.phpfreaks.com/topic/32630-solved-help-parse-error-syntax-error-unexpected-t_lnumber/#findComment-151809 Share on other sites More sharing options...
forumnz Posted January 3, 2007 Share Posted January 3, 2007 Im quite new to PHP but that certainly looks like HTML tags there.So this [code]<td width="674" valign=top class=row1>[/code]might need to be[code]<td width="674" valign="top" class="row1">[/code] Quote Link to comment https://forums.phpfreaks.com/topic/32630-solved-help-parse-error-syntax-error-unexpected-t_lnumber/#findComment-151812 Share on other sites More sharing options...
merebel Posted January 3, 2007 Author Share Posted January 3, 2007 That didn't work either Quote Link to comment https://forums.phpfreaks.com/topic/32630-solved-help-parse-error-syntax-error-unexpected-t_lnumber/#findComment-151817 Share on other sites More sharing options...
papaface Posted January 3, 2007 Share Posted January 3, 2007 What is line 63? Quote Link to comment https://forums.phpfreaks.com/topic/32630-solved-help-parse-error-syntax-error-unexpected-t_lnumber/#findComment-151819 Share on other sites More sharing options...
Carterhost Posted January 3, 2007 Share Posted January 3, 2007 [code]<td width="674" valign=top class=row1>[/code]The "674" here is escaping the quotes in the print statement. Replace these with single quotes( ' ) and this should fix it. Quote Link to comment https://forums.phpfreaks.com/topic/32630-solved-help-parse-error-syntax-error-unexpected-t_lnumber/#findComment-151820 Share on other sites More sharing options...
PFMaBiSmAd Posted January 3, 2007 Share Posted January 3, 2007 The contents of your print([color=red]"[/color]...[color=red]"[/color]) statement is enclosed within double-quotes. Any double-quotes that are contained within that must either be changed to single-quotes or be escaped with [color=red]\[/color] Quote Link to comment https://forums.phpfreaks.com/topic/32630-solved-help-parse-error-syntax-error-unexpected-t_lnumber/#findComment-151821 Share on other sites More sharing options...
papaface Posted January 3, 2007 Share Posted January 3, 2007 It wont make any difference because of:[code]<a class=mainmenu href='/'>Home</a><br>[/code]You will have to just escape all the " characters, by putting \ before them:[code]<td width=\"674\" valign=\"top\" class=\"row1\">[/code] Quote Link to comment https://forums.phpfreaks.com/topic/32630-solved-help-parse-error-syntax-error-unexpected-t_lnumber/#findComment-151822 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.