PHP Classes

PHP Bootstrap Pagination: Display pagination links using Bootstrap styles

Recommend this page to a friend!
  Info   View files Example   Demos   Screenshots Screenshots   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 657 All time: 4,888 This week: 124Up
Version License PHP version Categories
bootrap_pagination 1.0GNU General Publi...5.0HTML, PHP 5


This class can display pagination links using Twitter Bootstrap CSS styles.

It takes as parameters the total number of records in a listing and the limit of records to display per page.

The class checks the current number of page and generates an HTML list with links to the paginated list pages using CSS styles of Twitter Bootstrap library.

Picture of Taiwo Peace
  Performance   Level  
Name: Taiwo Peace is available for providing paid consulting. Contact Taiwo Peace .
Classes: 3 packages by
Country: Nigeria Nigeria
Age: 29
All time rank: 16506 in Nigeria Nigeria
Week rank: 405 Up13 in Nigeria Nigeria Down
Innovation award
Innovation award
Nominee: 1x



//include mypagin.php;
require_once ('mypagin.php');

//for sql syntax to get total_record number
$sql = "SELECT COUNT(column_id) FROM tablename" ;
$total_records = $row [0];

//create a pagin class
$pagin=new simplepagin();
// assign variable values

//this would give example.php?page=1 url type
//pagin size (sm or lg )
//for default pagination size leave value empty like this $pagin->size=''
//call the pagin function

  example outputExternal page  

Open in a separate window

  • pagin.JPG
  • paginlg.JPG
  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example example usage
Plain text file mypagin.php Class main pagination class

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:4,888
This week:124Up