michael-lane
05-17-2006, 07:25 PM
<?php
$christmas = mktime(0, 0, 0, 25, 12, 2006);
$time = time();
echo round($christmas-$time/86400). " days.";
?>
Why won't this script work for me? The script is based on tutorials i've read and on my own previous php manual reads but it won't work. Instead of showing the amount of days till christmas it returns this long number of like 10 digits which is obviously incorrect. Can someone note where i'm going wrong and how. I think its on the fourth line but I cant be sure.
$christmas = mktime(0, 0, 0, 25, 12, 2006);
$time = time();
echo round($christmas-$time/86400). " days.";
?>
Why won't this script work for me? The script is based on tutorials i've read and on my own previous php manual reads but it won't work. Instead of showing the amount of days till christmas it returns this long number of like 10 digits which is obviously incorrect. Can someone note where i'm going wrong and how. I think its on the fourth line but I cant be sure.
