You coulduse something like this
function load_table()
{
include('inc/database.inc.php'); //your database login
$connection = mysql_connect($db['host'],$db['uid'],$db['pwd']);
if($connection)
{
mysql_select_db($db['db']);
$sql = 'SELECT cell1, cell2 FROM mytable ';
$result = mysql_query($sql);
if($result)
{
echo "<table>"; //output html table
while($table = mysql_fetch_object($result)) // for every row
{
echo " <tr>"; //open html tr
echo"<td>$table->cell1</td>"; //open html td, content of cell1 close td
echo"<td>$table->cell2</td></tr>"; //dito
}
echo "</table>"; //when all the rows read, close the table
}
mysql_close(); //close sql connection
}
}
ofcourse this is a very generic approach, there are many ways to do it. Take this as a starting point. With time you'll be able to write scripts that really suit your needs.
cheers
vassilis