[Release] Accounts Online Statistic

Results 1 to 6 of 6
  1. #1
    Apprentice zybex is offline
    MemberRank
    Feb 2008 Join Date
    5Posts

    [Release] Accounts Online Statistic

    I'm write Accounts online statistic for WebPage.
    Simply add sql query, attached in message to GunzDB. It's create new table "UsersOnline" and update Stored Procedures "spUpdateAccountLastLogoutTime" and "spUpdateLastConnDate".
    In php script paste something like this:
    PHP Code:
    $query mssql_query("SELECT UserID FROM UsersOnline ORDER by UserID");
    $UsersOnline="";
    while(
    $row mssql_fetch_assoc($query)) {
        
    $UsersOnline.=$row[UserID]."<BR>";
    }
    echo 
    $UsersOnline
    One thing: when server restart you need clear table "UsersOnline".
    Attached Files Attached Files


  2. #2
    Account Upgraded | Title Enabled! Kingston is offline
    MemberRank
    Jun 2007 Join Date
    601Posts

    Re: [Release] Accounts Online Statistic

    Very Very Nice.

  3. #3
    Valued Member Psylithium is offline
    MemberRank
    Nov 2007 Join Date
    Germany, DortmuLocation
    138Posts

    Re: [Release] Accounts Online Statistic

    Nice one.

  4. #4
    Account Upgraded | Title Enabled! Kreain is offline
    MemberRank
    May 2008 Join Date
    679Posts

    Re: [Release] Accounts Online Statistic

    umm way too easy and its better to use a timestamp style thing

  5. #5
    Apprentice umegliu is offline
    MemberRank
    Nov 2007 Join Date
    16Posts

    Re: [Release] Accounts Online Statistic

    how to install? :scratch:

  6. #6
    Extreme Coder - Delphi bounty-hunter is offline
    MemberRank
    Sep 2007 Join Date
    GunZone MansionLocation
    1,725Posts

    Re: [Release] Accounts Online Statistic

    Im working on a custom GunZ site, how do i use it >.> (i suck at sql =[)



Advertisement