Ok, i manage age under my user based site, by the persons birthday but i noticed one big flaw. I manage the age by subtracting the current year by the year they were born. However, it does not take into affect what month they were born.
what is the best way to get the accurate date based off the year and month they were born. Am i looking for a math forumla or something?
Thank you Anthony
Well, without the actual day, you still won't be dead on, but this would get you closer.
$month = 7; $year = 1979; $age = floor((time() - strtotime($year.'-'.$month.'-01'))/31536000);
31536000 = 60 seconds 60 minutes 24 hours * 365 days.
http://www.phpbuilder.com/board/showthread.php?s=&threadid=10279939
How close is the script to being accurate? Is it by month/ Or actualyl by day? Becuase it still seems to be off for me.
Thank you