Pagination Previous and Next Buttons

Can someone take a look of my codes and show me how to implement previous and next buttons function?
Right now my previous and next buttons are showing the first page and last page. How can I fix this?
Thanks guys.

1 Like

I just figured it out actually. no need for help now. Lol