Posted on Sunday 1st June 2008 at 09:30 AM
<?php
include("online.php");
$get_online_users = mysql_query("SELECT * FROM `users` WHERE `online` >= '$offline' ORDER BY `level` ASC");
$total_users = mysql_num_rows($get_online_users);
if($total_users == 0){
echo "No Users Online!";
}else{
$i = 1; //the variable 'i' is 1
while($online = mysql_fetch_array($get_online_users)){
if(($i > 0) && ($i != $total_users)){
}else{
}
echo "<a href='members.php?user=$online[username]'>$online[username]</a>$comma";
}
}
?>
how would i get name colouring by there levels on that please help......
include("online.php");
$get_online_users = mysql_query("SELECT * FROM `users` WHERE `online` >= '$offline' ORDER BY `level` ASC");
$total_users = mysql_num_rows($get_online_users);
if($total_users == 0){
echo "No Users Online!";
}else{
$i = 1; //the variable 'i' is 1
while($online = mysql_fetch_array($get_online_users)){
if(($i > 0) && ($i != $total_users)){
}else{
}
echo "<a href='members.php?user=$online[username]'>$online[username]</a>$comma";
}
}
?>
how would i get name colouring by there levels on that please help......