whos_been_on.php
socketmud/www/whos_been_on.php · 531 B
From the archive MySQLMud.tar.gz
Download the archive « Back to the archive contents
<?
include("config.inc.php");
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query="SELECT * FROM vand_logins";
$result=mysql_query($query);
$num=mysql_numrows($result);
mysql_close();
echo "<title>Vandagard Login/Logouts</title.";
echo "<b><center>Whos been in and out of Vandagard..</center></b><br><br>";
$i=0;
while ($i < $num) {
$time=mysql_result($result,$i,"time");
$whowhat=mysql_result($result,$i,"whowhat");
echo "$time $whowhat<br>";
$i++;
}
?>