Website Online Players Live php Script

Results 1 to 7 of 7
  1. #1
    Apprentice Aurel Andrei is offline
    MemberRank
    Feb 2014 Join Date
    24Posts

    Website Online Players Live php Script

    Hi,

    im created php script for showing only Active Players on game and this script it's Live!

    PHP Code:
    <?
    $con 
    mssql_connect("localhost""sa""your_password") or die();
    mssql_select_db("MuOnline"$con) or die();



    $onlinedata mssql_query("Select memb___id, ConnectStat, ConnectTM from MEMB_STAT where ConnectStat = 1 order by ConnectTM desc");
    $i=1;
    while(
    $row mssql_fetch_array($onlinedata)) {
        
    $onlinename mssql_query("Select GameIDC from AccountCharacter where id='".$row['memb___id']."'");
        
    $onlinemap mssql_query("Select MapNumber,CtlCode,cLevel from Character where Name='".$row['memb___id']."'");

    $guma mssql_fetch_array($onlinename);
        echo 
    $i." - ".$guma['GameIDC']." [".$row['memb___id']."]<br />===================================<br />";

    $i++;
    }
    if you need other php scripts for MuOnline website, tell me and i help you!


  2. #2
    Don't be afraid to ask! RevolGaming is offline
    MemberRank
    Jun 2012 Join Date
    1,458Posts

    Re: Website Online Players Live php Script

    odbc is much secure. and add costum solution, so wazzap if the man have got Me_MuOnline, MuOnline etc?

    make a php file like online.php and a config.php file where the people can setup the config... so you can add me_muonline, etc..

  3. #3
    Apprentice Aurel Andrei is offline
    MemberRank
    Feb 2014 Join Date
    24Posts

    Re: Website Online Players Live php Script

    this script im created only for me to see online players on server if me im not home... :) and its easy to change data base name
    you see:
    PHP Code:
    mssql_select_db("MuOnline"$con) or die(); 
    you can change "MuOnline" in your DB name :)

  4. #4
    Don't be afraid to ask! RevolGaming is offline
    MemberRank
    Jun 2012 Join Date
    1,458Posts

    Re: Website Online Players Live php Script

    yeah, but if i have multi db... so i have Me_MuOnline (included accounts) MuOnline(inclouded characters1) MuOnline2 (included characters2)
    your code not will run...

  5. #5
    Apprentice Aurel Andrei is offline
    MemberRank
    Feb 2014 Join Date
    24Posts

    Re: Website Online Players Live php Script

    you can try this..

    PHP Code:
    <?
    $con 
    mssql_connect("localhost""sa""your_password") or die();
    mssql_select_db("Me_MuOnline"$con) or die();
    mssql_select_db("MuOnline"$con) or die();
    mssql_select_db("MuOnline2"$con) or die();



    $onlinedata mssql_query("Select memb___id, ConnectStat, ConnectTM from MuOnline.MEMB_STAT AND MuOnline2.MEMB_STAT where ConnectStat = 1 order by ConnectTM desc");
    $i=1;
    while(
    $row mssql_fetch_array($onlinedata)) {
        
    $onlinename mssql_query("Select GameIDC from Me_MuOnline.AccountCharacter  where id='".$row['memb___id']."'");
        
    $onlinemap mssql_query("Select MapNumber,CtlCode,cLevel from MuOnline.Character AND MuOnline2.Character where Name='".$row['memb___id']."'");

    $guma mssql_fetch_array($onlinename);
        echo 
    $i." - ".$guma['GameIDC']." [".$row['memb___id']."]<br />===================================<br />";

    $i++;
    }
    you have exemple from multiple conections up

  6. #6
    Member strdekliko is offline
    MemberRank
    Apr 2014 Join Date
    59Posts

    Re: Website Online Players Live php Script


  7. #7
    Proficient Member Ralpyy is offline
    MemberRank
    Oct 2010 Join Date
    187Posts

    Re: Website Online Players Live php Script

    Does anybody have got "Active In 24H" code?



Advertisement