for ($i = 1; $i < 4; $i++)
{
echo "<tr>\n";
for ($j = 1; $j< 4; $j++)
{
echo "<td></td>\n";
}
echo "</tr>\n";
}
========================
This will generate three rows and each row will have three columns. You will have to fill in the data between <td></td> tags.
Hope this will help.
Kai