Online user counts not set correctly [HoloCMS]

Results 1 to 2 of 2
  1. #1
    R.I.P Millercent FatalLulz is offline
    MemberRank
    Nov 2012 Join Date
    AustraliaLocation
    2,248Posts

    Online user counts not set correctly [HoloCMS]

    Hi,

    I use an edited version of HoloCMS and one problem is the user count. For some reason it always adds 6 to the amount of users online. Meaning, if no one is online, it shows as 6, or if 10 people are online it shows as 16 etc etc..

    Code;
    Code:
    $server = mysql_fetch_assoc($server_status = mysql_query("SELECT * FROM server_status"));
    $online_count = $server['users_online'];
    Using Phoenix emulator by the way. Any ideas?


  2. #2
    Member Raikas77 is offline
    MemberRank
    Feb 2011 Join Date
    Atri, ItalyLocation
    89Posts

    Re: Online user counts not set correctly [HoloCMS]

    $s1ql = mysql_query("SELECT * FROM server_status LIMIT 1");
    $r1ow = mysql_fetch_assoc($s1ql);
    $online_count = $r1ow['users_online'];



Advertisement