From b14b0eb356e3568dac5f3ec6e2026e8b32e58ccd Mon Sep 17 00:00:00 2001 From: james Date: Wed, 16 Dec 2009 18:12:28 +0000 Subject: [PATCH] Fix the dropdowns --- admin/fair_stats.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/admin/fair_stats.php b/admin/fair_stats.php index e0863f5d..4d637886 100644 --- a/admin/fair_stats.php +++ b/admin/fair_stats.php @@ -135,15 +135,16 @@ echo "
"; $q=mysql_query("SELECT * FROM fairs WHERE `type`='sfiab' OR `type`='ysc'"); - echo ""; echo "\n"; while($r=mysql_fetch_object($q)) { if($fairs_id==$r->id) $sel="selected=\"selected\""; else $sel=""; echo "\n"; } + echo "\n"; $q=mysql_query("SELECT DISTINCT(year) AS year FROM config WHERE year>0 ORDER BY year"); - echo ""; echo "\n"; while($r=mysql_fetch_object($q)) { if($year==$r->year) $sel="selected=\"selected\""; else $sel="";