I need to change this code
To make it show
mins,hours,days
PHP:
<?php
$getTime = mysql_query("SELECT * FROM users_stats ORDER BY Respect DESC LIMIT 5") or die(mysql_error());
while($timeStats = mysql_fetch_array($getTime))
{
$days = floor($timeStats['online_seconds'] / (60*60*24));
$userInfo = mysql_fetch_array(mysql_query("SELECT `username`,`look` FROM users WHERE `id` = '".$timeStats['id']."'")); {
echo '
<tr>
<td width="25%"><img src="https://game.boon.pw/habbo-imaging/avatarimage.php?figure=' . $userInfo['look'] . '&size=m&direction32&head_direction=3&gesture=sml" align="left"></td>
<td width="75%"><a href="{url}/home/'.$timeStats['username'].'"><b>'.$userInfo['username'].'</b></a><br />'.$timeStats['online_seconds'].' Online</td>
</tr>';
}
}
?>
To make it show
mins,hours,days