From a7797fc1d8621c1f10d7c7b93bd32ff234c4de6e Mon Sep 17 00:00:00 2001 From: cookie Date: Sun, 30 Dec 2007 16:53:10 +0000 Subject: [PATCH] add weitere tschirt auswertungen git-svn-id: svn://svn.cccv.de/engel-system@266 29ba0400-6e00-0410-a75a-ca02368028f8 --- www-ssl/admin/debug.php | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/www-ssl/admin/debug.php b/www-ssl/admin/debug.php index 961a8164..9ab7295f 100755 --- a/www-ssl/admin/debug.php +++ b/www-ssl/admin/debug.php @@ -31,7 +31,7 @@ echo "Deaktiviert"; */ -echo "

Tshirt-Size

"; +echo "

Tshirt-Size aller engel

"; $SQL="SELECT `Size`, COUNT(`Size`) FROM `User` GROUP BY `Size`"; $Erg = mysql_query($SQL, $con); echo mysql_error($con); @@ -40,6 +40,23 @@ $rowcount = mysql_num_rows($Erg); for ($i=0; $i<$rowcount; $i++) echo mysql_result($Erg, $i, 1). "x '". mysql_result($Erg, $i, 0). "'
\n"; +echo "

Tshirt ausgegeben

"; +$SQL="SELECT `Size`, COUNT(`Size`) FROM `User` WHERE `Tshirt`='1' GROUP BY `Size`"; +$Erg = mysql_query($SQL, $con); +echo mysql_error($con); +$rowcount = mysql_num_rows($Erg); + +for ($i=0; $i<$rowcount; $i++) + echo mysql_result($Erg, $i, 1). "x '". mysql_result($Erg, $i, 0). "'
\n"; + +echo "

Tshirt nicht ausgegeben (Gekommen=1)

"; +$SQL="SELECT `Size`, COUNT(`Size`) FROM `User` WHERE `Gekommen`='1' and `Tshirt`='0' GROUP BY `Size`"; +$Erg = mysql_query($SQL, $con); +echo mysql_error($con); +$rowcount = mysql_num_rows($Erg); + +for ($i=0; $i<$rowcount; $i++) + echo mysql_result($Erg, $i, 1). "x '". mysql_result($Erg, $i, 0). "'
\n"; include ("./inc/footer.php"); ?>