Building a Page Controller with the jQuery Quick Pagination Plug-in
(Page 1 of 4 )
Welcome to the final installment of the series that introduces you to the jQuery Quick Pagination plug-in. Comprised of five parts, this series takes an in-depth look at the most useful features provided by this jQuery add-on and shows you how to use it either for splitting up hard-coded HTML elements, such as paragraphs and images in chunks of readable data, or for paginating sets of database records.
And now that I mentioned the term "database records," it's fair to recall that in the previous tutorial I started building a basic PHP-driven application. Its main task was to display on the browser basic information about some fictional users, previously fetched from a MySQL table.
The purpose of coding an application like this was to demonstrate how to employ the functionality of Quick Pagination to paginate a few database rows, thus providing a more realistic context. Even so, the application in its current version doesn't do anything especially useful; it's only capable of statically generating the header and footer sections of a web page and nothing else. That's pretty boring and very distant from the dynamic scenario that we see every day on the web.
Well, it's time to give the application a dramatic twist and make it much more functional. With that goal in mind, in this last part of the series I'm going to implement a basic page controller in PHP. It will not only fetch the user-related data from the corresponding MySQL table, but display this information in the form of paginated divs, thanks to the use of the Quick Pagination plug-in.
Ready to tackle this last chapter of the series? Then let's get going!
Next: Review: web application source code so far >>
More JavaScript Articles
More By Alejandro Gervasio