Hi,
What exactly you want? Just display all the fields of table in the html table? You wont bother about the width rather you should give border="0" in the table. for eg:- if you have two fields as Name,Age in "person" table, then
// made database connections in php
//$sql=mysql_query("select * from person");
<form>
<table border="0">
<tr>
<td>Name</td><td>Age</td>
<?
while($row=mysql_fetch_array($sql))
{
?>
<td> <? echo $row['Name'];?></td>
<td><?echo $row['Age'];?></td>
<?
}
?>
</table>
</form>
It automatically displays all Name and Age in person.