I have built myself a chat system but now I have a slight issue. I want the username for the logged in user to always sit at the top of the users list and the others to sit below.
This is how I want it :
But other accounts are appearing like this :
I want it like the first image for all accounts, but I still want the class order intact. Is that possible?
$active = mysql_query("SELECT id, username, class, warned, enabled, added
FROM users
WHERE last_access >= $dt
ORDER BY class DESC") or sqlerr(__FILE__, __LINE__);