Ya pude organizar la tabla a mi antojo, el problema fue que tuve que incluir el while dentro de <table></table> y ahora todos los resultados salen pegados
así
el código que utilizé es
Código PHP:
<html>
<head>
<title>Documento sin título</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php mysql_connect("localhost", "user", "pass")
or die("Could not connect to database.");
mysql_select_db("base_01") or
die("Cannot select database");
?>
<TABLE width="95%" border=1 cellPadding=0 cellSpacing=0 borderColorLight=#000000 borderColorDark=#d1c4ba>
<TBODY>
<?PHP
$result = mysql_query("select * from tabla_01 where Producto='$prod'") or die( mysql_error() );
while ($row = mysql_fetch_array($result))
{
?>
<tr >
<TH ><?PHP echo $row['IdContacto']; ?></TH>
<TH ><?PHP echo $row['Contacto']; ?></TH>
</tr>
<tr >
<TH><?PHP echo $row['Producto']; ?></TH>
<TH ><?PHP echo $row['TeléfonoTrabajo']; ?></TH>
</tr>
<?PHP
}
?>
</TBODY>
</TABLE>
</body>
</html>
intenté separarlos incluyendo la tabla dentro de while y no al revés como
aqui , pero no pude
gracias por la ayuda