Re: UGH

From: Date: Thu, 17 May 2001 10:52:55 +0000
Subject: Re: UGH
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-53208@lists.php.net to get a copy of this message
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

« previous php.general (#53208) next »