Ég gerði function fyrir þig…
<b>
<?PHP
function getAgeByDate( $dag, $man, $ar )
{
if( substr( $ar, 0, 1 ) == ‘0’ )
$ar = date( ‘y’ ) . $ar;
else
$ar = ‘19’ . $ar;
$ts = ( mktime() - 86400 ) - mktime( 0, 0, 0, $man, $dag, $ar );
$_dag = $ts / 86400;
$_ar = floor( $_dag / 365.25 );
return $_ar;
}
?>
</b><br><br>
<b>heat.intenz</b>
<a href="
http://heat.evil.is">
http://heat.evil.is</a