in reply to Splitting an array into multiple HTML table rows
Take a look at the replies to simple column/row counter this recent question on the same subject.