Getting total of users in chatroom

  •  07-18-2011, 1:48 PM

    Getting total of users in chatroom

    Greetings,
     
    Currently I'm trying to make a Stored Procedure that will get a list of chatrooms that a user has permissions to.  I have that much thus far, but I also need to get the number of users within each chatroom.  I'm not using the API due that what I need to do would take about 3-4 calls and thought it might be easier to just compress it into one straight shot.  My question is, what table and fields determines a user is online in a chatroom?  I'm guessing it's possibly the Users table, but not sure.  Anyways, I'm just trying to figure out how to detect those numbers.  Any help would be appreciated.  Thanks.
     
    ~Chad Johnson
View Complete Thread