PHP Code:
<?php
$sql_server = "localhost";
$sql_user = "user";
$sql_pass = "pass";
$sql_data = "PS_GameData";
$conn=mssql_connect($sql_server,$sql_user,$sql_pass);
mssql_select_db($sql_data,$conn);
$query = mssql_query("select * from [Chars] where LoginStatus = 1");
if(mssql_num_rows($query)){
echo "<center><br><br>";
echo "<table border='1'>
<tr>
<th align='center'>Character Name</th>
<th align='center'>Level</th>
<th align='center'>Map</th>
<th align='center'>Rank</th>
</tr>";
while($row = mssql_fetch_array($query)){
echo "<tr>";
echo "<td align='left'>".$row1['CharName']."</td>";
echo "<td align='center'>".$row1['Level']."</td>";
echo "<td align='center'>".$row1['Map']."</td>";
echo "<td align='center'>".$row1['K1']."</td>";
echo "</tr>";
}
echo "</center></table>";
}else{echo "No one is online at this moment!";}
mssql_close($conn);
?>
Didn't test it, just rewrote it in a quote back to you. Am not really a PHP expert but it should work fine, you just needed a while loop on the mssql_fetch_array, so it'd pull back more data than 1 person.
*Edit* Rewrote it again, noticed unclosed tags, and I reordered the operations.