I'm having a problem with the date of birth to your age script. For some people it is adding an extra year! i.e. date of birth July 29, 1982 (26) its showing 27 instead. Here is the code I have:
function getAge($fromdate, $todate){
$diff = date("Y", $todate) - date("Y", $fromdate);
if(mktime(0,0,0, date("n", $todate),date("j", $todate),1970) > mktime(0,0,0, date("n", $fromdate),date("j", $fromdate),1970)){
$diff++;
}
return $diff;
}[/B]
Does anyone know whats the problem and how to fix it? Thanks