<? 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++; } ?>