Generating an html report from an sql query -
I have a SQL query that returns a lot of results for which I want to generate an HTML table to display them I am The problem is that I do not want to display them all on one page, I want to hold 10 at a time and flip through pages of results.
I want to return 100 results for every query, but I do not understand how to get the next 100 on the next question.
- return to the first 100 rows SELECT * from table LIMIT 0, 100 - return next Select 100 rows * 100, 100 from table * - and next selection * FROM table LIMIT 200, 100
What you need to do is pass a variable to your script every page Make the proper SQL LIMIT statement for
Comments
Post a Comment