- Joined
- Dec 4, 2007
- Messages
- 1,935
- Reaction score
- 96
PHP:
echo "<tr><td class='tcate' style='width:100%;text-align:left'>";
echo "Currently Active Users: ";
$query = mysql_query("SELECT * FROM users WHERE online ='1' ORDER BY username");
while($row = mysql_fetch_array($query))
$username = $row['username'];
echo "$username,";
echo "</td></tr>";
This currently shows "Currently Active Users: Mike,".
How can I make it so if $row['rank'] = 3, the name is bold and red, if $row['rank'] = 2, the name is bold and green, and if $row['rank'] = 1, then the name is normal? Also, I'd like the last name on the list to have a period after it, not a comma...

