Hi junior!
Ehrlich gesagt weiß ich nicht, wo du meinst? Ich hab eine for-Schleife aufgebaut, in der er vom Min also z.B. 2000 bis zum Max 2222 hochzählt.
Und diese Min- und Max-Werte setzt du doch auch. Wieso solltest du sie also nicht ändern können?
Wo soll ich denn das
$minoder$maxverändern, damit das funktioniert? Und wo soll ich das ('Y') setzen?
Ich verstehe dein Problem nicht:
// aktuelles Jahr
$currentYear = int(date('Y');
// For-Schleife von $currentYear-5 bis $currentYear+5
for ($i = $currentYear-5 ; $i <= $currentYear+5; $i++) {
// ...
Das ist es doch, was du suchst, oder?
MfG H☼psel
--
"It's amazing I won. I was running against peace, prosperity, and incumbency."
George W. Bush speaking to Swedish Prime Minister unaware a live television camera was still rolling, June 14, 2001
Selfcode: ie:% fl:( br:> va:) ls:& fo:) rl:? n4:& ss:| de:] js:| ch:? sh:( mo:) zu:)
"It's amazing I won. I was running against peace, prosperity, and incumbency."
George W. Bush speaking to Swedish Prime Minister unaware a live television camera was still rolling, June 14, 2001
Selfcode: ie:% fl:( br:> va:) ls:& fo:) rl:? n4:& ss:| de:] js:| ch:? sh:( mo:) zu:)