OK, odd question.
I have a table that gets generated from a sql query. that all works fine. I made a row header (name, title, info, etc) that gets created before my printf statement to display my table data.
what I want to do is repeat that header for every 5 records that are displayed. right now I am doing it in a very ugly manner and I am sure it could be better.
I set a variable, and during the while loop I check it to see if it matches 5,10, 15, 20, etc and if so, it re-print the header and continue.
Ugly, I know, but I dont know how to tell that IF statment to check every multiple of 5.
Any ideas? Is it so obvious I cannot see it?
Thanks!
-Tony