nikocraft's avatar

how would I add index to result when using pagination

I want to give index to each result from a query, something like this

page 1 1 2 3 4 5 page 2 6 7 8 9 10 page 3 etc

How would I do that? I can't use the id from the table, and I can't use $loop->index to print out a number, since that would reset for each page.

How would I give index to all returned results and have it work accors all the pages

0 likes
0 replies

Please or to participate in this conversation.