<h1>Found Item Logger:</h1> <?php // Linux_lover for http://forums.alliedmods.net/showthread.php?t=93042 $user = "itemlogger"; $pass = "itemlogger"; $db = "itemlogger"; $host = "localhost"; mysql_connect($host, $user, $pass) or mysql_error(); mysql_select_db($db) or mysql_error(); $result = mysql_query("SELECT * FROM `log`"); if(mysql_num_rows($result) < 1) echo "<i>There are no entries in the log..</i><br /><br />"; ?> <table border="1" cellpadding="3"> <tr style="font-weight: bold;"><td>ID:</td><td>STEAM ID:</td><td>ACTUALTIME:</td><td>ONLINEPLAYERS:</td><td>ITEM:</td></tr> <?php while($row = mysql_fetch_array($result)) { ?> <tr><td><?php echo $row['ID']; ?></td><td><?php echo $row['STEAMID']; ?></td><td><?php echo $row['ACTUALTIME']; ?></td><td><?php echo $row['ONLINEPLAYERS']; ?></td><td><?php echo $row['ITEM']; ?></td></tr> <?php } mysql_close(); ?> </table>