Skip to content
Advertisement

Pagination does not display the last two data from the database

This is where I set the number of pages and starting point:

This is where the looping and the buttons:

Total Records: 8

Total Pages: 4

But then it only prints 3 buttons, kinda confused where did I go wrong.

Advertisement

Answer

my guess is you’re starting from 1 instead of 0 or use

instead

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement