<?
//connect n query shit here //
$result=((query here))
echo "<table>"
while($arr=mysql_fetch_array($result)):
?>
<tr>
<td><?=$arr['result1']?></td>
<td><?=$arr['result2']?></td>
</tr>
<tr>
<td><?=$arr['result3']?></td>
<td><?=$arr['result4']?></td>
</tr>
<?
endwhile;
echo "</table>";
that should work, unless i interpereted your question the wrong way (which is very possible because its friday and my brain is outside looking for girls)