Hello all RageZone
Why don't get Ip status look the code.
please say me why don't print status?
and only print
Uploaded with
Thank's
Why don't get Ip status look the code.
please say me why don't print status?
<?php $result = mysql_query("SELECT * FROM _Server");
echo "<table border='1'>
<tr>
<th>ServerName</th>
<th>Players</th>
<th>Level Cap</th>
<th>Experience</th>
<th>Status</th>
</tr>";
while($row = mysql_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['ServerName'] . "</td>";
echo "<td>" . $row['Level_Cap'] . "</td>";
echo "<td>" . $row['Level_Cap'] . "</td>";
echo "<td>" . $row['Exp_Rate'] . "</td>";
echo "<td>".$ServerIP=$row['$Server_IP'];
$ServerPort=$row['$Server_Port'];
$IP = "$ServerIP";
$Port = "$ServerPort";
$status = checkState($IP,$Port);
if ($status) echo '<span style="color: green;font-weight:bold;">Online</span>';
else echo '<span style="color: red;font-weight:bold;">Offline</span>';
"</td>";
echo "</tr>";
}
echo "</table>";
?>
and only print
You must be registered to see links
Uploaded with
You must be registered to see links
Thank's