|
From: <il...@pr...> - 2004-05-11 07:05:59
|
Update of /cvsroot/meshdb/www/db2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14515 Modified Files: index.php Log Message: Added a total interface count to the front page, mostly just for interest's sake. Index: index.php =================================================================== RCS file: /cvsroot/meshdb/www/db2/index.php,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- index.php 9 May 2004 03:32:30 -0000 1.9 +++ index.php 11 May 2004 07:05:38 -0000 1.10 @@ -58,7 +58,7 @@ printf("is 1 lonely node"); else printf("are $nentries nodes"); -?>, and <? +?> and <? $result = mysql_query("SELECT count(*) from netloc where active", $db) or die(mysql_error($db)); $row = mysql_fetch_row($result); @@ -67,7 +67,12 @@ printf("1 active interface"); else printf("$nentries active interfaces"); -?>. +?> (<? + $result = mysql_query("SELECT count(*) from netloc", $db) + or die(mysql_error($db)); + $row = mysql_fetch_row($result); + printf(strval($row[0])." total"); +?>). <form method=get action="search.php"> Node search: <input name="q"> |