Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: l2 online zaidejai(neveikia)

Parašė House· 2008 Rugs. 20 21:09:10
#1

Kas cia negerai? serverio statusa rodo... o kur zaidejai rodo db klaida..? duomenis surasiau teisingus...


@openside(" Lankomumas ");
?>
<?php




////Server status//////


$IP = array(
"Login: " => "78.61.225.240:2106",
" Game: " => "78.61.225.240:9014",
); while(list($ServerName,$Host)=each($IP)) {
list($IPAddress,$Port)=explode(":",$Host);
echo($ServerName);
if($fp=fsockopen($IPAddress,$Port,$ERROR_NO,$ERROR_STR,(float)0.5)) {
echo("<font color='green'>On-line </font><br>");
fclose($fp);
}
else {
echo ("<font color='red'>Off-line </font><br>");
}
}

////Online zmoniu//////

$dbhost="localhost"; ////Adresas mysql serverio
$dbname="l2jdb";  //// DB vardas
$dbuser="root";   //// Loginas
$dbpass="root";       //// Passwordas



   $get_config_data="SELECT online FROM characters WHERE online>0";
   $config_data=MYSQL_QUERY($get_config_data);
   $config['num_online']=mysql_num_rows($config_data);
echo " Zaideju ";   
echo ("<font color='green'>".$config['num_online']."</font>");
MYSQL_CLOSE($msc);
?>
<?
@closeside();




P.S. paieska naudojausi

Redagavo ramon· 2008 Rugs. 20 22:09:57