hi friend try this for listing table with data from your database
make a php file
<?php
mysql_connect('hostname', 'username','password') or die(" Can not connect databaw");
mysql_select_db('tablename') or die("cannot open table");
$qur = "SELECT * FROM tablename";
$res = mysql_query($qur);
?>
<table>
<th><td>name</td></th><th><td>Age</td></th>
<?php
while($row = mysql_fetch_assoc($res))
{ ?>
<tr><td><?php echo $row['name']; ?></td><?php echo $row['age'];?> <td></tr>
<?php
} ?>
</table>