hi,
im writting a script, that alerts me when a set number of days are remaining to an event...(which im fine with!!!)
The problem that i have, is the way that im getting the remaining days, the script is dividing the results by the number of seconds in the day...
So say that today is the 3rd July and the alert is excuted at 1pm, the the script will return 1 day, if say the event was on the 5th July....logically thinking it would return 1 day, but phyiscally there are two days remaining....
can anyone help?
<?
// Change the Dates to meet your needs
$day = 5;
$month = 7;
$year = 2003;
$title="Asp work";
$workid="1";
$days_left=(int)((mktime (0,0,0,$month,$day,$year) - time(void))/86400) ;
echo $days_left;
?>
thanks for any advice in advance
fimbria