heur1konrc Posted October 8, 2012 Share Posted October 8, 2012 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 Quote Link to comment https://forums.phpfreaks.com/topic/269238-formatting-results-from-mysql-using-php/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.