countup
Posted: Fri Dec 19, 2003 11:59 am
I don't see any scripts that count up.. mostly i see countdown
Any one has the code for count up?
Each day + 1
Any one has the code for count up?
Each day + 1
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
<?php
$StartDate = mktime(0,0,0,12,18,2003); //mktime(hour, minute, second, month, day, year)
$DateToday = mktime(date("h, i, s, m, d, Y"));//todays date
$dateDiff = $DateToday - $StartDate;
$NumDays = round($dateDiff/60/60/24, 2);
echo 'Difference in days: ' . $NumDays . '<br />';
?>