In addition - if you did 3rd June as the end date - 17th May as today, 3 -
17, the original $days_to_go would be a minus number.... (What I meant to
say in the first place
Also, this would be better:
if ($date_today > $school_out) {
echo "We're already on holiday!";
$new_difference = $date_today - $school_out;
$days_gone = $new_difference / 86400;
echo "It's been " . $days_gone . " since we got outta there.";
} else if ($date_today == $school_out) {
echo "Grab your coat, we're outta here today!";
} else {
echo $days . " days to go!";
}
Need...more....Coffeeeeeeeeeeeee....................
James
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]