I'm looking for a way to include a "next page" tag that is conditional based on the number of table rows in a page. i.e. my page will contain a gigantic table with many rows, but after every 10th row it would split to the next page. I suppose with the "next page" function it would also have to insert a closing TR and TABLE and then open a new TABLE TR (before and after the "next page"). I'm kind of a novice at php but I can work with it when I have direction. Any help would be appreciated! Thanks.