A simple and stylish PHP pagination function by Dan Palka. Free for everyone!
Get CodeAbout | How to Use | Example Output | Interactive Demo | Email Me
Feel free to try PHPagination by entering your own values here. The pagination generated at the bottom of this page really works! Experiment with short paginations, long paginations, and paginations with a value of -1. Don't forget current and ending arguments are zero-based!
// Required arguments $pCurrent = 240; $pEnd = 699; $aLeft = 'example.php?&p='; $aRight = ''; // Optional arguments $sMultiplier = 20; $sArrows = FALSE; // Call the function echo PHPagination($pCurrent, $pEnd, $aLeft, $aRight, $sMultiplier, $sArrows);