Código PHP:
<?php
$result = mysql_query("SELECT elid,autor,titulo FROM thread where id=11");
while ($row = mysql_fetch_array($result, MYSQL_NUM)) {
$resultt = mysql_query("SELECT cuerpo FROM post where elid=$row[0] and autor = '$row[1]'");
while ($rowt = mysql_fetch_array($resultt, MYSQL_NUM)) {
$tituro = $row[0];
$titurot = $row[2];
echo <<< HTML
<table>
<tr bgcolor="#FHHH98">
<td align="center" >
HTML;
echo $tituro;
echo <<< HTML
</td>
<td align="center">
HTML;
echo $titurot;
echo <<< HTML
</td>
</tr>
</table>
<table><tr><td width="100%" bgcolor="#FF0000">$rowt[0]</td></tr></table>
HTML;
}
mysql_free_result($resultt);
}
mysql_free_result($result);
?>
saludos