PHPagination

A simple and stylish PHP pagination function by Dan Palka. Free for everyone!


Get CodeAbout | How to Use | Example Output | Interactive Demo | Email Me


Interactive Demo

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!



You are on page 13 of 35

// 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);

1 | 2 | 310 | 11 | 12 | Page 13 of 35 | 14 | 15 | 1633 | 34 | 35