Posted on Sunday 13th May 2007 at 11:37 PM
Hey, I am starting to make a online part, so it shows how many users are online for the RMB Member System. So far I got it where it changes the user number to 1 when they login (so the script will know if they're in or out), and I got it to change it back to 0 when they're logged out.
My problem is, when I attempt to display the users, nothing comes up. I have this code so far:
Does anybody have any suggestions?
Thanks!
My problem is, when I attempt to display the users, nothing comes up. I have this code so far:
PHP Code
$onine = mysql_query("SELECT username FROM members WHERE logged = '1' ORDER BY id DESC") or die (mysql_error()); $fetchon = mysql_fetch_array($online); $current_user_on = $fetchon['username']; echo "$current_user_on";
Does anybody have any suggestions?
Thanks!