Website Online Players Live php Script

Newbie Spellweaver
Joined
Feb 1, 2014
Messages
24
Reaction score
4
Hi,

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

PHP:
<?
$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!
 
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:
mssql_select_db("MuOnline", $con) or die();

you can change "MuOnline" in your DB name :)
 
you can try this..

PHP:
<?
$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
 
Back