Reputation: 3
For example I have 100 result in my query.
I want to printing paper every page 10 result.
How to print php mysql query result 10 by 10 css page-break-after?
Upvotes: 0
Views: 237
Reputation: 423
You did not ask your question very well in English. But I think that you can run your query like this :
SELECT * FROM tableName ORDER BY fieldName DESC LIMIT $startIndex, $count
Which $startIndex
could be your starting number and $count
could be 10 in your case.
NOTE Do not forget to edit my code and use prepared statement in your query
Upvotes: 1