Here's a simple while statement:
$sql = mysql_query("SELECT * FROM table'");
while ($row = mysql_fetch_array($sql)) {
$recID= $row['recID'];
<tr><td><? echo $recID; ?></td></tr>
}
If there are no rows to display, how do I echo this? Rather than showing no rows at all?