Well, you don't say what database you are using. Assuming it is mySql, you could use something like the code below. If you are using a different database, the idea is the same. Read the data and echo it out one row at a time.....
<?php
// connect to database
// build query
$query = "SELECT firstname, lastname FROM myTable";
// execute query
$result = mysql_query($query);
// check results
if ($result) {
// display results
// you could also use: mysql_result(), mysql_fetch_array(), mysql_fetch_row(), etc.
echo "<table border=1>";
while ($row = mysql_fetch_assoc($result)) {
echo "<tr>";
echo "<td>" . $row['firstname'] . "</td>";
echo "<td>" . $row['lastname'] . "</td>";
echo "</tr>";
}
echo "</table>";
// free result set
mysql_free_result($result);
} else {
echo "there was a problem executing the query [$query]";
}
?>
-- code has not been tested --