i have a little problem with mssql , cuz i wanted read out some columns to show in a table with php.
My Question is how i can make a row of the dataset.
I tried it but i see only the same in the table not the next entries of the column.
here a part of the code:
Code:
echo "<center><table border='1'><tr>
<td align='center'><font color='#FFFFFF'>Char_no</font></td>
<td align='center'><font color='#FFFFFF'>wIndex</font></td>
<td align='center'><font color='#FFFFFF'>Header</font></td>
<td align='center'><font color='#FFFFFF'>line_no</font></td>
</tr>";
$con = mssql_connect($mssql['host'],$mssql['user'],$mssql['pass']) or die("Connection lost,try it again later.");
$result1 = mssql_query("SELECT character_no FROM character.dbo.user_bag WHERE character_no = 'A09050520000000021'",$con);
while($row1 = mssql_fetch_row($result1)) {
$result2 = mssql_query("SELECT character_no,wIndex,byHeader,line_no FROM character.dbo.user_bag WHERE character_no = 'A09050520000000021' ORDER by line_no DESC",$con);
$row2 = mssql_fetch_row($result2);
{
echo "<tr>
<td align='center'><font color='#FFFFFF' size='3' >".$row2[0]."</font></td>
<td align='center'><font color='#FFFFFF' size='3' >".$row2[1]."</font></td>
<td align='center'><font color='#FFFFFF' size='3' >".$row2[2]."</font></td>
<td align='center'><font color='#FFFFFF' size='3' >".$row2[3]."</font></td>
</tr>";
}
}
echo "</table></center>";
My Results are like this
Char_no wIndex byHeader line_no
1 9901 1 1
1 9901 1 1
1 9901 1 1
Just the same item
it must looks like this that i see all items from a character for example
Char_no wIndex byHeader line_no
1 9901 1 1
1 9902 5 16
1 9903 8 24
I hope anyone can help.
Greetings
dA-uNknOwN







