Codice PHP:
$select 'select * from tabella';
$sql mysql_query($select) or die (mysql_error());
echo 
'<table>';
while(
$res mysql_fetch_array($sql)){
echo 
'<tr>';
foreach(
$res as $dati){
echo 
'<td>'.$dati.'</td>';
}
echo 
'</tr>';
}
echo 
'</table>'
Un po grezzo ma dovrebbe essere giusto