Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

parse syntax error in footer


Guest

Recommended Posts

Posted

This is my footer code - the pages are listing but at the bottom of each page I get this error. I can't work out where else to put the "}" that it says is a " parse error unexpected "}" in line 36" located in ....footer."

 

Anyone able to solve this one? I don't recall doing anything with it in the first place but I guess I have...any help appreciated! All I have done is added "</div>" at the bottom as part of the contrib to centre the store.

 

 

<?php

/*

$Id: footer.php,v 1.26 2003/02/10 22:30:54 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

require(DIR_WS_INCLUDES . 'counter.php');

?>

<table border="0" align="center" width="100%" cellspacing="0" cellpadding="1">

<tr class="footer">

<td class="footer">  <?php echo strftime(DATE_FORMAT_LONG); ?>  </td>

</tr>

</table>

<br>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td align="center" class="smallText"><?php echo FOOTER_TEXT_BODY; ?></td>

</tr>

</table>

<?php

// if ($banner = tep_banner_exists('dynamic', '468x50')) {

?>

<br>

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td align="center"><?php echo tep_display_banner('static', $banner); ?></td>

</tr>

</table>

<?php

}

?>

</div>

</td></tr></table>

Posted

Change the last:

 

}

To:

 

//}

You "commented out" the "if" stament earlier in the code. This was the "end" of that...

;)

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...