I have a small MySQL database with small amount of records that are updated houlry. The PHP code queries the database and returns the results into tables. They look great on screen They need to be able to be printed out by the customer. When this happens, I need to limit the number of tables perpage to 6. If there were 30 records, there would be 5 pages.
I have attached the PHP code that I tried to do this with. Someone on another site said it looks like I am loading the variables wrong because the same record is in each table. The CSS I use in the code does place the page breaks after 6 tables but only on the first page, the second page has 5 and the third has 3 etc. when printing and they are all the same record. Can someone help me out?
count01.php
count_ex1.pdf