Thanks for writing back, guys.
The list would be used to either exclude or include online users in various games, extras, etc., that I am adding to the forum. For instance, anyone logged in at any given time might be given a bonus this or that, or anyone offline might lose points in a game while anyone online might be "protected" from the event. I need an array of the online userids so I can add something to my database queries such as
Code:
foreach($offlineUsers as $user)
{
$sql .= " AND userid != '$user';
}
This way when I perform various operations on users and custom fields I've added for them in the user table I can exclude or include only those on or offline.
Any advice for how to get this array of online users would be greatly appreciated.
Thanks!