Hi.
First time Ive had the chance to help anyone else out - Im usually the one doing the asking.
I presume you are happy with connecting to your database, and that you are just wondering how to extract specific data and generate a table?
Firstly, run a MySQL query:
?>
$cursor = mysql_query ("SELECT * from TABLE where TABLE.ID = '2'");
?>
(use YOUR tablename obviously)
To have some pre-defined headers for your table, run some HTML:
<table border=1 align="center" name="Whatever">
<tr>
<th class="Styles">Name</th>
<th class="Styles">DOB</th>
</tr>
Now you need to dynamically generate the rest of the table and populate it at the same time:
<?
if (!$cursor)
{
echo("<H3>MySQL error: " . mysql_error() . "</H3>");
exit();
}
while ( $row = mysql_fetch_array($cursor) )
{
echo '<TR>
<TD class="Styles">' . $row['Name'] . '</TD>
<TD class="Styles">' . $row['DOB'] . '</TD>
</TR>
}
?>
I`m fairly new to all this myself, so that is re-hashed from my code to fit your requirements.