<?php
function Minutes($time)
{
$ret = "";
$minutes = ($time);
if($minutes > 0)
$ret .= "$minutes Minutes";
return $ret;
}
?>
<div class="cbb clearfix blue ">
<h2 class="title">Saddest Users</h2>
<div style="padding:5px">
<table style="width: 100%">
<?php
$getTimeOnline = mysql_query("SELECT * FROM `user_stats` WHERE `OnlineTime` >= '0' ORDER BY `OnlineTime` DESC LIMIT 5");
while(($TimeOn = mysql_fetch_array($getTimeOnline))) {
$getUserInfo = mysql_query("SELECT * FROM `users` WHERE `id` = '".$TimeOn['id']."'");
$userInfo = mysql_fetch_array($getUserInfo);
echo '
<tr>
<td width="20%"><img src="http://habbo.nl/habbo-imaging/avatarimage?figure='.$userInfo['look'].'&size=s" /></td>
<td width="80%"><b><a href="/home">'.$userInfo['username'].'</a></b><br />'.Minutes($TimeOn['OnlineTime']).' Spent Online</td>
</tr>';
}
?>
I know that, but is it the amount of minutes you played? I have never seen this before, which CMS and Emu are you using?thats a value in the database.