Hello:
I want to create a count down to a date with the following variables
1. number of days (90)
2. current date
now using a specific past date stored in db, I want to create a countdown that basically tells me how many days until the 90 days are up
I have something like this,
<?php
$keyMonth = 5;
$keyDay = 14;
$keyYear = 2011;
$month = date('F');
$mon = date('n');
$day = date('j');
$year = date('Y');
$hours_left = (mktime(0,0,0,$keyMonth,$keyDay,$keyYear) - time())/3600;
$daysLeft = ceil($hours_left/24);
$z = (string)$daysLeft;
if ($z > 1) {
print "There are <font size=\"4\" color=\"red\">";
print $z;
print "</font> days left until my 90 days are up</p>";
}
?>
in the above example, I'm counting to a date. What I need is the number of days to a future date based on a specified number of days --say 90 days.
Hope I'm making sense...
Can I get some thoughts on this!
Thanks,
Mossa