View Single Post
wycs
Junior Member
Join Date: Dec 2008
Old 05-24-2009 , 02:05   Re: Found Item Logger
Reply With Quote #6

Quote:
Originally Posted by pheadxdll View Post
Yes, perhaps its not as random as Valve wants us to think!

I made a quick and dirty php script that reads the database and prints out the information to a webpage. Someone else might find this useful!

PHP Code:
 <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>
What is the "Actual Time" ?
wycs is offline