add weitere tschirt auswertungen
git-svn-id: svn://svn.cccv.de/engel-system@266 29ba0400-6e00-0410-a75a-ca02368028f8
This commit is contained in:
parent
f58879ba0d
commit
a7797fc1d8
|
@ -31,7 +31,7 @@ echo "Deaktiviert";
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
echo "<h1>Tshirt-Size</h1>";
|
echo "<h1>Tshirt-Size aller engel</h1>";
|
||||||
$SQL="SELECT `Size`, COUNT(`Size`) FROM `User` GROUP BY `Size`";
|
$SQL="SELECT `Size`, COUNT(`Size`) FROM `User` GROUP BY `Size`";
|
||||||
$Erg = mysql_query($SQL, $con);
|
$Erg = mysql_query($SQL, $con);
|
||||||
echo mysql_error($con);
|
echo mysql_error($con);
|
||||||
|
@ -40,6 +40,23 @@ $rowcount = mysql_num_rows($Erg);
|
||||||
for ($i=0; $i<$rowcount; $i++)
|
for ($i=0; $i<$rowcount; $i++)
|
||||||
echo mysql_result($Erg, $i, 1). "x '". mysql_result($Erg, $i, 0). "'<br>\n";
|
echo mysql_result($Erg, $i, 1). "x '". mysql_result($Erg, $i, 0). "'<br>\n";
|
||||||
|
|
||||||
|
echo "<h1>Tshirt ausgegeben</h1>";
|
||||||
|
$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). "'<br>\n";
|
||||||
|
|
||||||
|
echo "<h1>Tshirt nicht ausgegeben (Gekommen=1)</h1>";
|
||||||
|
$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). "'<br>\n";
|
||||||
|
|
||||||
include ("./inc/footer.php");
|
include ("./inc/footer.php");
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue