Junior Spellweaver
- Joined
- Apr 28, 2009
- Messages
- 150
- Reaction score
- 2
<div class="cbb clearfix gray ">
<h2 class="title">Who's Online?</h2>
<div id="notfound-looking-for" class="box-content">Users Online on (HOTEL NAME): <?php $getUsers = dbquery("SELECT id FROM users WHERE online = '1' ORDER BY activity_points_lastupdate DESC");
if (mysql_num_rows($getUsers) > 0)
{
while ($u = mysql_fetch_assoc($getUsers))
{
echo $users->formatUsername($u['id']);
echo ', ';
}
}
else
{
echo 'No users Online.';
}
?><br />
</div>
</div>
<h2 class="title">Who's Online?</h2>
<div id="notfound-looking-for" class="box-content">Users Online on (HOTEL NAME): <?php $getUsers = dbquery("SELECT id FROM users WHERE online = '1' ORDER BY activity_points_lastupdate DESC");
if (mysql_num_rows($getUsers) > 0)
{
while ($u = mysql_fetch_assoc($getUsers))
{
echo $users->formatUsername($u['id']);
echo ', ';
}
}
else
{
echo 'No users Online.';
}
?><br />
</div>
</div>
Credits for Me (GuikBretas) 99% to create the Who's Online
1% UberCMS and UberEMU creator
Last edited: