STK-TheAssassin Posted May 26, 2007 Share Posted May 26, 2007 Hello, I run a chatroom for a game that some friends and I play. Does anyone know of a php script that I can get to use that will desplay on our website how many users are in our chat room, and maybe list the users names? Out chatroom is IRC based. Thanks STK-T.A. Quote Link to comment https://forums.phpfreaks.com/topic/53061-irc-status-script/ Share on other sites More sharing options...
taith Posted May 26, 2007 Share Posted May 26, 2007 $query=mysql_query("SELECT count(id) as num FROM `users` WHERE `online`='1'"); $row=mysql_fetch_assoc($query); echo $row['count(id)']; Quote Link to comment https://forums.phpfreaks.com/topic/53061-irc-status-script/#findComment-262138 Share on other sites More sharing options...
STK-TheAssassin Posted May 26, 2007 Author Share Posted May 26, 2007 $query=mysql_query("SELECT count(id) as num FROM `users` WHERE `online`='1'"); $row=mysql_fetch_assoc($query); echo $row['count(id)']; Okay, but how does it connect to the IRC Server and the channel to pick up the users in the channel? Quote Link to comment https://forums.phpfreaks.com/topic/53061-irc-status-script/#findComment-262213 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.