serkan acmaz
serkan acmaz

Reputation: 3

Print mysql result 10 by 10 php css page break after

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

Answers (1)

amir22
amir22

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

Related Questions