Jump to content

Formatting Results From Mysql Using Php


heur1konrc

Recommended Posts

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.