";
for($j = 0; $j < pg_numfields($result); $j++)
{
echo "";
if($j==0) echo "$i | " . pg_result($result, $i, $j) . "";
echo " | ";
}
}
echo "";
}
function tb_make_table($query, $border)
{
// $tb_postgres_host = "www.uni-leipzig.de";
// $tb_postgres_port = "5544";
$tb_postgres_host = "139.18.25.36";
$tb_postgres_port = "5432";
$tb_postgres_user = "counter";
$tb_postgres_passwd = "rnvs";
$tb_postgres_database = "counter";
$database = pg_connect("host=$tb_postgres_host port=$tb_postgres_port user=$tb_postgres_user password=$tb_postgres_passwd dbname=$tb_postgres_database");
$result = pg_exec($database, $query);
if($result == false)
{
}
else tb_print_table($result, $border);
pg_freeresult($result);
pg_close($database);
}
tb_make_table("select server, count(server) from webaccess where CURRENT_DATE -30 < datum group by server order by count(server) desc", 1);
?>
Browser-OS | count |
Win NT / 2K | % |
Linux | % |
Mac OS | % |
BSD | % |
Solaris | % |
other | % |
faq(de) faq(en)