PDA

View Full Version : Adding copyright year to footer


spaycegirl
01-06-2008, 11:51 AM
Hi,

I've added the copyright year to the footer(includes/client/footer.inc.php)

<div id="footer">&copy; Copyright <?=$year;?>

However, for some reason 2008 is appearing on the side of the page and on the top...even if I remove the code. I'm not sure why this is happening.

I cleared my cookies and that didn't work either. Any idea why the year is in the footer as well as on various other locations on the page?:o

Thanks!

davy
01-08-2008, 03:00 PM
Hi,

just tried this and it doesn't happen for me.
Try to replace the variable with plain text to narrow the mistake, maybe there is an unclosed <div> somewhere?

Davy

DackR
01-09-2008, 05:59 PM
I couldn't get this to work either.

This should work though...
Replace this:
<?=$year;?>

With this:
<?php echo date("Y") ?>