What ServerStatus you need for Online/Offline are what tells you how many People are online?
Here Serverstatus for online/offline & how many people are playing.
PHP Code:
<?php
$host = "HYLPER\SQLEXPRESS";
$user = "sa";
$pass = "yourpw";
$dbname = "GunzDB";
$conn = odbc_connect("Driver={SQL Server};Server={$host}; Database={$dbname}", $user, $pass) or die("Cant't connect the Server.");
$s_query = odbc_do($conn,"SELECT TOP 99 * FROM ServerStatus WHERE ServerID > 0");
while (odbc_fetch_row($s_query))
{
echo "<br/>";
$s = odbc_result($s_query,1);
echo "$s.  ";
$s = odbc_result($s_query,7);
echo "$s";
$s = odbc_result($s_query,2);
echo "     $s / ";
$s = odbc_result($s_query,3);
echo "$s     ";
$s = @fsockopen(odbc_result($s_query,5), odbc_result($s_query,6), $errno, $errstr, 1);
if (!$s)
{
echo "<font color='#FF0000'>Offline</font>";
}
else
{
echo "<font color='#00FF00'>Online</font>";
}
}
?>