First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
include "db.php";
|
||||
|
||||
$query = "SELECT * FROM `login_log` WHERE `user_ip` LIKE '207.194.253.26' ORDER BY last_login";
|
||||
$results = db_query($query);
|
||||
|
||||
echo("\nLOGIN LOG\n");
|
||||
while ($row = db_fetch_assoc($results)) {
|
||||
$snum = $row['school_num'];
|
||||
$sname = db_getVal("SELECT school_name FROM schools WHERE record_num = $snum");
|
||||
|
||||
echo("$sname\n");
|
||||
print_r($row);
|
||||
echo("\n");
|
||||
}
|
||||
|
||||
|
||||
$query = "SELECT * FROM `activity_log` WHERE `user_ip` LIKE '207.194.253.26' ORDER BY school_num,activity_time";
|
||||
$results = db_query($query);
|
||||
|
||||
echo("\nACTIVITY LOG\n");
|
||||
while ($row = db_fetch_assoc($results)) {
|
||||
$snum = $row['school_num'];
|
||||
$sname = db_getVal("SELECT school_name FROM schools WHERE record_num = $snum");
|
||||
|
||||
echo("$sname\n");
|
||||
print_r($row);
|
||||
echo("\n");
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in new issue
Block a user