title: How to Print mysql data on a A4 size paper using PHP-Codeigniter
body: <p>I have four fields in my mysql table and in total there is around 85 rows of information. Now when any user clicks on a button, I want it to retrieve all the data from the mysql table and print those out on a A4 size paper.</p>
  
  <p>For 85 rows of information it probably going to need more than one page, so in that case I also want it to display the page number out of total number of pages- like 2 out of 10. I have tried googling it but haven't found any good tutorial.</p>
  
  <p>Would you please kindly help me how to do this ? Just for your information- I am using Codeigniter. </p>
  
  <p>Thanks in Advance.       </p>