Reguest code .php for MySgl

Results 1 to 3 of 3
  1. #1
    Apprentice r3birth is offline
    MemberRank
    Mar 2012 Join Date
    13Posts

    Reguest code .php for MySgl

    Request code .php for MySgl.

    1. Total accounts
    2. Character online

    thanks.


  2. #2
    JD Dev Scena is offline
    MemberRank
    Apr 2011 Join Date
    HellLocation
    413Posts

    Re: Reguest code .php for MySgl

    <?
    include "config.php";

    $result = mysql_query("SELECT zoneid FROM point WHERE zoneid IS NOT NULL");
    $count = @mysql_num_rows($result);

    $sockres = @FSockOpen($LanIP, $ServerPort, $errno, $errstr, 1);

    if (!$sockres)
    {
    mysql_query("DELETE FROM online");
    $Count = 0;
    echo "Server: <font color=red><font size=5><b>Offline</b></font>";
    }
    else
    {
    @FClose($sockres);
    echo "Server: <font color=#ffa500><font size=5><b>Online</b></font>";
    }

    echo "&nbsp; <font color=#ffa500><font size=5><a href='../rank'></a>Users Online: <b>".$count."</b> &nbsp;";
    ?>
    Use a simple config file.

  3. #3
    Apprentice r3birth is offline
    MemberRank
    Mar 2012 Join Date
    13Posts

    Re: Reguest code .php for MySgl

    Quote Originally Posted by Pronetix View Post
    Use a simple config file.
    thanks.



Advertisement