Bueno, sería algo así
Código PHP:
// displaying records in a table
echo "<table border=1>";
$i = 0;
//total of records of first array
$j = count($result);
while( $i < $j )
{
$k=0;
//second array
$otroresult = $result[$i];
//total of records of second array
$l = count($otroresult);
echo "<tr>";
while( $k < $l )
{
echo "<td>$otroresult[$k]</td>";
$k++;
}
$i++;
echo "</tr>";
}
echo "</table>";
pruebalo y comentas
saludos