Hello all.I got some problems with this query
It showing only 1 player when there are more online.Any tips on how to fix it to show all players online will be much appreciated!
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);
$xadb = mssql_select_db($sql_data,$conn);
echo "<center><br><br>";
echo "<table border='1'>
<tr>
<td align='center'>Character Name</td>
<td align='center'>Level</td>
<td align='center'>Map</td>
<td align='center'>Rank</td>
</tr>";
$name1 = mssql_query("select [CharName],[Level],[Map],[k1] from [dbo].[Chars] where LoginStatus = 1");
$row1 = mssql_fetch_row($name1);
echo "<tr>
<td align='left'>".$row1[0]."</td>
<td align='center'>".$row1[1]."</td>
<td align='center'>".$row1[2]."</td>
<td align='center'>".$row1[3]."</td>
</tr>";
mssql_close($conn);
?>