I assume your users and online users are separate tables, if so, you'll have to do what I suggest. Not sure whether the SQL JOIN() command could help you. Look into it.
I assume your users and online users are separate tables, if so, you'll have to do what I suggest. Not sure whether the SQL JOIN() command could help you. Look into it.