function showcoords()
{
echo"J3st3r's CoordVision";
$result=dbquery("SELECT alliance, region, coordx, coordy FROM ".DB_COORDFUSION."");
echo "<table border='1'>";
// printing table headers
echo "<tr>";
echo "<td>Alliance</td>";
echo "<td>Region</td>";
echo "<td>Coord</td>";
echo "</tr>\n";
// printing table rows
while($row = mysql_fetch_array($result))
{
foreach($row as $Cell)
{
echo "<tr>";
echo "<td>".$row['alliance']."</td>\n";
echo "<td>".$row['region']."</td>\n";
echo "<td>".$row['coordx'].",".$row['coordy']."</td>\n";
echo "</tr>\n";
}
}
echo "</table>";
mysql_free_result($result);
}
Done what you mentioned, and now it displays the same row 8 times.