View Single Post
Old 12-13-2007, 07:57 PM   #3 (permalink)
kevthedude
The Wanderer
 
Join Date: Dec 2007
Posts: 7
Thanks: 2
kevthedude is on a distinguished road
Default

This is how I modified your code to work:
PHP Code:
$first 1195958278;
$last mktime(000date("m"$first)  , date("d"$first)+90date("Y"$first));
$today mktime(000date("m")  , date("d"), date("Y"));
$remaining floor(($last $today)/86400);
echo 
remaining
$remaining will be your days left. You may have to switch the floor() function to ceil()... I didn't figure out the real difference in the dates but this script shows 71 days remaining. Tell me if this is wrong and I'll fix it up for you.
kevthedude is offline  
Reply With Quote