PHP Help
Blog Archive
►
2010
(7)
►
May
(3)
►
April
(4)
▼
2009
(12)
►
June
(6)
▼
May
(6)
Get the time from specific date -JS
Configuration File
Sample Controller headers
Sample User Class
Database Connection Class
Introduction
Get the time from specific date -JS
function countdays($date)
{
$today = time();
$diff=$today -$date;
$days = floor($diff/86400);
$months=floor($days/30);
$day=floor($days%30);
return "Member for: $months months $day days ";
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment