Hey, cant figure out how to get this code to work? <?php $nextyear = mktime(0, 0, 0, date("m"), date("d"), date("Y")+1); ?> Copyright © <?php print date("Y"); ?> - <?php print "$nextyear"; ?> PHP: But Displays: Copyright © 2008 - 1249790400 Why is it showing that instead of 2009
mktime() returns a UNIX timestamp: www.php.net/mktime and not a date in a human readable format. You already have what you need, you're just over complicating it. Copyright © <?php print date("Y"); ?> - <?php echo date('Y') + 1; ?> PHP:
lol i had that b4 except i messed up on 1 piece i didnt know what i put this originaly Copyright © <?php print date("Y"); ?> - <?php print date('Y')+1); ?> PHP: And it Didnt work XD lol