Possible Duplicate:
Calculate years from date
Hi,
I have a table with a field representing the birthday. How do I find the age of the person from that date?
This is what I have.
$qPersoonsgegevens = "SELECT * FROM alg_persoonsgegevens WHERE
alg_persoonsgegevens_leerling_ID = $leerling_id";
$rPersoonsgegevens = mysql_query($qPersoonsgegevens);
$aPersoonsgegevens = mysql_fetch_assoc( $rPersoonsgegevens );
$timeBirthdate = mktime($aPersoonsgegevens['alg_persoonsgegevens_geboortedatum']);
Unfortunately, I don't know how to proceed from that point to get the age.
Any help is much appreciated.
Matthy