PHP Classes

Paging Class with AJAX or HREF: Browse paginated query results using AJAX or HREF

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2010-11-10 (4 years ago) RSS 2.0 feedStarStarStar 40%Total: 5,018 All time: 487 This week: 1,153Down
Version License PHP version Categories  
cls_db 1.0GNU General Publi...3.0HTML, PHP 5, Databases, AJAX
Description Author  

This class can be used to browse database query results split between pages using AJAX to switch between the listing without page reloading.

It can execute an SQL query using the PEAR DB API and return records to be displayed in the page.

The class also generates navigation links that to go to the first, last, previous, next or any intermediate pages.

When the user clicks on the links, an AJAX request is triggered to retrieve the respective page content and update only the listing container, thus without reloading the whole page.

It is possible to configure the limit number of records and the limit of page links to show per page.

Picture of Jannerel Roche
Name: Jannerel Roche <contact>
Classes: 2 packages by
Country: Philippines Philippines
Age: 36
All time rank: 4639 in Philippines Philippines
Week rank: 1579 Down18 in Philippines Philippines Down

  Files folder image Files  
File Role Description
Plain text file class.database.php Class main database class layer
Accessible without login Plain text file config.php Conf. configuration file
Accessible without login Plain text file jquery-1.3.2.min.js Aux. jquery base library
Accessible without login Plain text file main.css Aux. stylesheet
Plain text file Paging.php Class MAIN CLASS FILE
Accessible without login Plain text file pagingajax.js Data js file
Accessible without login Plain text file pagingindex.php Example index main
Accessible without login Plain text file README Doc. README
Accessible without login Plain text file refresher.php Example second file

 Version Control Unique User Downloads Download Rankings  
 0%Total:5,018All time:487
 This week:0This week:1,153Down
 User Ratings  
 All time