diff --git a/news_funcs.php b/news_funcs.php index 737a4c1..c7c2f25 100644 --- a/news_funcs.php +++ b/news_funcs.php @@ -11,13 +11,14 @@ { $startyear = 2000; $today = getdate (); - while ($startyear <= $today['year']--) + while ($startyear <= $today['year']) { - for ($month = $today['mon'] ; $month > 0 ; $month--) + for ($month = $today['mon'] ; $month > 1 ; $month--) { echo '

' . date ("F, Y", mktime (0,0,0,$month,0,$today['year'],0)); } + $today['year']--; } } ?>