Codice PHP:
...

<table>
<?php
...
$query "...";
$result mysql_query($query);
while (
$record mysql_fetch_array($result)) {
    echo 
"<tr><td>$record['campo']</td></tr>";
}
...
?>
</table>
...