Learn how to paginate a list of items or database records using PHP.
Overview
Syllabus
Introduction
- Showing posts in pages using PHP
- Using the exercise files on GitHub
- Pagination overview
- Finding the pagination variables
- Using total record count
- Setting up the project database
- SQL LIMIT, OFFSET, and COUNT
- Paginating database records
- Adding links to previous and next pages
- Creating pagination links
- Showing an excerpt of the page list
- Remembering the current page
- Defining a pagination class
- Outputting links for previous and next pages
- Outputting pagination links
- Next steps
Taught by
Kevin Skoglund