Connect with mysql. Open the database. Fetch the result set.
Print out the HTML to open the table, followed by a table row containing the labels.
For each row in the result set, fetch the data and print out the appropriate HTML.
Close the table.
Generically, it looks like this:
<?
mysql_connect("localhost","mylogin","mypw");
mysql_select_db("mydbname");
// retrieve the result set
$res - mysql_query("select * from mydbname");
// or use your favorite query
?>
<!-- open the table, print labels -->
<table>
<tr>
<td>column1label</td><td>column2label</td>
</tr>
<?
// print out all the rows
while ($myrow = mysql_fetch_object($res)
echo "<tr><td>$myrow->column1</td><td>$myrow->column2</td></tr>";
?>
<!-- and close the table -->
</table>
If you don't like objects, fetch the rows as arrays -- the difference is merely notational convention.