Hello,
I am having trouble calculating the age of someone from a birthday. I can do it using mktime, but it doesnt work for anyone born before 1970, due to using the unix timestamp. Please help! Here is my code:
$date = explode("-", $date);
//now $date[0]=YYYY, $date[1]=MM, $date[2]=DD
// first get the current date
$nowdate = mktime(0,0,0,date("m"),date("d"),date("Y"));
// this is my birthday
$birthday = mktime(0,0,0,$date[1],$date[2],$date[0]);