Hi,
if($woche == 08) {
elseif($woche == 09) {
Integer mit fuehrender Null sind aus Sicht von PHP Oktalzahlen.
Allerdings koennen in diesem Zahlensystem nur die Ziffern von 0 bis 7 vorkommen - 08 und 09 sind deshalb ungueltige Oktalzahlen, die PHP kommentarlos in 0 "konvertiert".
Du solltest also den Vergleich mit Strings machen - zumal date('W') dir ja auch einen String liefert.
MfG ChrisB
--
„This is the author's opinion, not necessarily that of Starbucks.“
„This is the author's opinion, not necessarily that of Starbucks.“