PHP:
<?
$born = "1981";
$bornmonth = "09";
$month = date("m");
$date = date("Y");
$geb = (("$date")-("$born"));
$geb2 = (("$date")-("$born")-(1));
if
($bornmonth<$month)
{
echo "$geb";
}
else
{
echo "$geb2";
}
?>
So hab ich zur Zeit meine Altersangabe. Es funktioniert auch

Danke schonmal fuer antworten

Santos
Zuletzt bearbeitet: