in reply to Re: Output
in thread Output

you may also want to fill out the last row with empty cells by adding the following code between the for loop and final print call:
print "<TD>&nbsp;</TD>\n" while (index++ % 3);