Pagination CSS and PHP Function

So I've done this a lot of time before and now is the time to write about it. What is Pagination? If you'ld ask me then here is a English definition to Pagination Pagination is the process of dividing content into discrete pages, where each page will be  displaying a limited number of records. Nearly all websites use this technique. Pagination is done to save bandwidth to some extent, present results quicker and to group data. There could be lot more use cases for pagination but I've highlighted only few here. A Pagination Control in general have 3 types of HTML Links Previous Page Pages Current page highlighted and other appear as normal Next Page   Lets start with PHP pagination function, below is a very simple version of a PHP I wrote of myself and in most cases this is enough Call this function as Below is what we get:                   That does not look pretty at all. I'll be fired by my manager if I give them something like this to view so let take a look how to make it pretty Use the CSS below Lets check the result after we put in the CSS     The Colors are more like Flickr's Navigation but you can change the colors to whatever Leave a comment if this helps you at all Cheers   . … [Read more...]