PHP MySQL Help really easy question.....?

jami

New member
The data in the 5th column shows above the table and not in the column box thing.. please help!!

<?php
$db = mysql_connect("localhost","root","pahsdfasdfjaklsdf");
mysql_select_db('forum', $db);
$query = "SELECT *FROM abuse LIMIT 0, 30";
$result = mysql_query($query);
while($row = mysql_fetch_array($result)){

echo "<table border='2'>";
echo "<th>Id</th><th>Reporter</th><th>Abuser</th><th>Rule</th><th>Time</th>";
while($row = mysql_fetch_array($result)){

echo "<tr><td>", $row['id'], "</td><td>", $row['reporter'], "</td><td>", $row['abuser'], "</td><td>", $row['rule'], "</td></tr>", $row['time'], "</td></tr>";
}
echo "</table>";
echo "</center>";
}

?>
 
Back
Top