Here I will show you how you can create HTML Table from PHP and MySQL
PHP Code:
$query = "SELECT < column_names > from < table_name >";
$result = mysql_query($query);
echo "<table>";
while ($row = mysql_fetch_assoc($result)) {
echo "<tr><td>".implode("</td><td>",$row)."</td></tr>";
}
echo "</table>";