title: How do I easily determine the age from an birthday? (php)
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1112835/calculate-years-from-date">Calculate years from date</a>  </p>
  </blockquote>
  
  <p>Hi,</p>
  
  <p>I have a table with a field representing the birthday. How do I find the age of the person from that date? </p>
  
  <p>This is what I have.</p>
  
  <pre><code>$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']);
  </code></pre>
  
  <p>Unfortunately, I don't know how to proceed from that point to get the age.</p>
  
  <p>Any help is much appreciated.<br>
  Matthy</p>