From 5692d047a0a73336c0c6e211a2056a587e8a8fb4 Mon Sep 17 00:00:00 2001 From: Dan Olson Date: Mon, 15 May 2000 17:46:34 +0000 Subject: [PATCH] this better not have broken anything --- news_funcs.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/news_funcs.php b/news_funcs.php index b2de7e9..d786912 100644 --- a/news_funcs.php +++ b/news_funcs.php @@ -6,4 +6,18 @@ '

' . $text . '

' . ''; } + + function listMonths ( ) + { + $startyear = 2000; + $today = getdate (); + while ($startyear <= $today['year']--) + { + for ($month = $today['mon'] ; $month > 0 ; $month--) + { + echo '

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