FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Phpbb Sessions - Need help getting guests/members.....





[FuN]goku
Guest/Members Online in Phpbb Script

Right so ive integrated phpbb sessions around my site.. and what i need to do now..
is have a lil forum stats thing at the bottom.. now the guests online counter isnt working... heres the code i got..

Code:

$sql = mysql_query("SELECT * FROM phpbb_sessions WHERE session_user_id='-1'");
$guests = mysql_num_rows($sql);


which finds all the people using the "Anonymous" account which is the default for people who visit...

but the problem with this.. is that in the forum it displays guests as 0... and on the main page its displayed as 4... in the sql tables there are 4 entrys for guests... so im not quite sure what to do..
Any help would be appreciated

-Thanks in Advance
[FuN]goku
anyone? holy crap been waiting days for a reply :/
Related topics
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.