Please Log in to join the conversation.
Please Log in to join the conversation.
Hi,
you need a little peace of code to do that.
This is something I wrote for me. Maybe you can adapt this for yourself. If you need further help, just make a post here or PM me.
[code:1]function birthday($theday)
{
$DOBArray = explode("-", $theday);
//echo $DOBArray[1].".".$DOBArray[2]."<br>";
$bday = $DOBArray[2].".".$DOBArray[1];
if ($bday==date("d.m"«»))
{
$a = date(Y);
$b = $DOBArray[0];
$x = ($a - $b);
return $x;
}
else
{
return "";
}
}[/code:1]
Please Log in to join the conversation.