I know this has a simple solution, but right now I can't find it!
$currentSports = "SELECT * FROM Sports ORDER BY sport";
$result = mysql_query( $currentSports, $link);
while ($currentSports = mysql_fetch_array($result))
{
$id = $currentSports['id'];
$sport = $currentSports['sport'];
$description = $currentSports['description'];
echo "<table border=1>\n
<td><b>Sport</b></td><td><b>Description</b></td>\n<td><b> </b></td>\n
<tr><td><a href=\"updatesport.php?sport_id=$id[id]&".SID."\">".$sport."</a></td>\n
<td>$description</td>\n
<td>delete<br></td>\n
</tr>\n
</table>\n";
}
?>
I want to list the results in one table, but the code makes a new table for each result set. What do I need to change.