15 lines
300 B
PHP
15 lines
300 B
PHP
<?php
|
|
include "db.php";
|
|
|
|
$results = db_query("select user_ip,count(*) as num from login_log where school_num = 3 group by 1");
|
|
$total = db_num_rows($results);
|
|
|
|
while ($row = db_fetch_array($results)) {
|
|
extract($row);
|
|
printf(" %-15s %3d\n",$user_ip,$num);
|
|
}
|
|
|
|
echo("\nTotal: $total\n\n");
|
|
|
|
?>
|