Reputation: 9
Hi i have this problem with my web page, I was able to solve the issue on auto-increment of a row but then another issue struck me. When I go to another page, the auto-increment resets and didn'tenter image description here continue with the last number. Hope you could help
[the output on page 1 and last page which the number didn't continue to count][2]
Upvotes: -2
Views: 129
Reputation: 2177
Based on your screen-shot, I can see that the page number is included as a parameter in the URL. You can use this parameter to offset your counter.
$i = $_GET['page_no'] * $people_per_page + 1;
Upvotes: 0