diff options
Diffstat (limited to 'www-ssl/admin/debug.php')
-rwxr-xr-x | www-ssl/admin/debug.php | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/www-ssl/admin/debug.php b/www-ssl/admin/debug.php index 917e4a32..aaf1bcb4 100755 --- a/www-ssl/admin/debug.php +++ b/www-ssl/admin/debug.php @@ -5,7 +5,7 @@ $header = "Datenbank-Auszug"; include ("./inc/header.php"); include ("./inc/funktion_db_list.php"); -echo "<h1>Counter</h1> <br>"; +echo "<h1>Web Counter</h1>"; funktion_db_list("Counter"); /* @@ -30,6 +30,17 @@ funktion_db_list("FAQ"); echo "Deaktiviert"; */ + +echo "<h1>Tshirt-Size</h1>"; +$SQL="SELECT `Size`, COUNT(`Size`) FROM User 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"); ?> |