So, basically you want * number of tables, with no more than 12 rows? One way would be (assuming the array's key is one column and the value is another):
echo "<table>";
$tick = 1;
while(list($key,$val) = @each($you_array)) {
if ($tick % 12 == 0) {
echo "</table><table>";
}
echo "tr><td>$k</td><td>$v</td></tr>";
$tick++;
}
if ($tick % 12 != 0) {
echo "</table>";
}