summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--www/index.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/www/index.php b/www/index.php
index e97e394..a27fd0f 100644
--- a/www/index.php
+++ b/www/index.php
@@ -51,16 +51,17 @@ ECHOFORM;
db_connect();
-$identifier = 0;
+
+$stats = array();
$res = mysql_query("SHOW TABLE STATUS");
if ($res) {
while ($r = mysql_fetch_array($res)) {
- if ($r['Name'] == 'word') $identifier = $r['Rows'];
+ $stats[$r['Name']] = $r['Rows'];
}
}
-if ($identifier) {
- echo('<p><span id="identifier_in_db">'.$identifier."</span> in DB</p>\n");
+foreach ($stats as $table => $n) {
+ echo('<p style="display:none;"><span id="n_'.htmlentities(strtolower($table)).'">'.intval($n)."</span> in ".htmlentities($table)."</p>\n");
}