Login   Register  
PHP Classes
elePHPant
Icontem

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 del.icio.us Bookmark in del.icio.us
  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 (3 years ago) RSS 2.0 feedStarStarStar 40%Total: 4,992 All time: 482 This week: 1,347Down
Version License PHP version Categories  
cls_db 1.0GNU General Public Lice...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: 35
All time rank: 4579 in Philippines Philippines
Week rank: 1779 Down17 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:4,992All time:482
 This week:0This week:1,347Down
 User Ratings  
 
 All time
Utility:50%StarStarStar
Consistency:52%StarStarStar
Documentation:52%StarStarStar
Examples:50%StarStarStar
Tests:-
Videos:-
Overall:40%StarStarStar
Rank:2111