Great way to reply... I think I'll copy that.
Berkeley CA ? CA = Califonia? Berkeley near San Francisco? Cool...
Yeah, I guess I'm like most Americans. We always assume everyone else know our abbreviations (and everything about us)... Can see parts of SF out my window!
Do you have the right numbers? 10 for y seems too big.
This is for calculate the Years. Example: Congratulations for your 81. Birthday
The input date is: 21.03.1990 (dd.mm.yyyy) - (char 6 to 10)
When you're checking for the birthday, you should exclude years. That is part of the problem because someone's bday year will never occur again! So check for just day/month and no year in the IF statement. You can still say congratulations you're 81 but calculate the age separately. If your date is being stored as dd.mm.yyyy, your IF should look something like:
if(date('d.m') == substr($jSeblod->list[$i]->geburtstag->value,0,5)) {
$bdaycheck++; // this variable will be null unless there's at least one bday.
//echo your happy birthday stuff
} // that's it, no else here.
if (!$bdaycheck) echo 'leer';
Let me know if that works for you...
Finally I want to output this search in a Modul.
Assign the search and template to a list module and publish it to a position.
Hope that helps and I understood you ok.