does any one know where i can get a script that will convert a birthdate in to an age.
i have one half written however i have incounter difficulties with dealing with leap
years. perhaps soem one would know the solution . .. or just a premade script is
fine
$test = strtotime ("January 12, 1944");
$test2 = strtotime ("January 9, 1954");
$oneyear = 3600 * 24 * 365;
$diff = $test2 - $test;
$ans = $diff/$oneyear;
echo $ans;
Thank You,
Jon Yaggie
www.design-monster.com
And they were singing . . .
'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code
101 little bugs in the code . . .'
And it continued until they reached 0