Print all pages generated by PHP and MYSQL

Asked

Viewed 96 times

0

Hello, I am making an extract in which can be generated several pages, I used a very simple pagination system using limit in querys of mysql.

The problem is that it is generated several pages and at the time of printing it just printed one at a time (which is right since they are different pages), but would have any way to print all these pages? Since I Gero an "expected" url like: page=1, page=2, page=3 and so on, would I be able to print all the generated pages? Because I have one $var that contains the number of pages generated by the query. Would you have any solution for this? Or I will have to rethink this paging system?

  • you will have to create a different call for printing, generating the page with the full content as you want...

  • In case I’m using a div to delimit the area to print, would I have to assign a page value to it and then call them all at once? <a href="javascript:printDiv('imprimirext')" >

1 answer

1


Problem solved with the Datatables plugin, which in my case fell well since it has several functions and one of them is to make the Client Side pagination, so I can generate all the results at once, as well as print them. If anyone goes through the same problem here is the link: Data Tables

I had to reformulate my system a little to make it work but it is very simple to use and configure, as well as implement even more functions.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.