Table data doesn't go on separate rows

talmmeliott

New Member
I grab data from my server & want them to display like this:http://gyazo.com/3ed9349af4a0c3eb9fe9492b74104526And instead, this happens:http://gyazo.com/2c7960ff62c35723b444545476e1d99cI use PHP for the values:\[code\]<table border="0" cellspacing="0" cellpadding="0"> <tr> <td> Player Name </td> <td > PK Level </td> <td> Kills </td> <td> Experience </td> </tr> <tr> <td > <?php $result = mysql_query("SELECT * FROM high ORDER BY Runecraftlvl DESC LIMIT 20"); while($row = mysql_fetch_array($result)) { echo $row['Runecraftlvl']; echo "<br />"; } ?> </td> <td> <?php $result = mysql_query("SELECT * FROM high ORDER BY Runecraftlvl DESC LIMIT 20"); while($row = mysql_fetch_array($result)) { echo $row['Runecraftlvl']; echo "<br />"; } ?> </td> <td> <?php $result = mysql_query("SELECT * FROM high ORDER BY Runecraftlvl DESC LIMIT 20"); while($row = mysql_fetch_array($result)) { echo $row['Runecraftlvl']; echo "<br />"; } ?> </td> <td> <?php $result = mysql_query("SELECT * FROM high ORDER BY Runecraftlvl DESC LIMIT 20"); while($row = mysql_fetch_array($result)) { echo $row['Runecraftlvl']; echo "<br />"; } ?> </td> </tr> </table>\[/code\]Why is this happening? How can I make the data go on separate rows, 4 datas each row?Thanks.
 
Back
Top