How to Make PHP Pagination
Every new programmer face problem of pagination in PHP and today i have decided to give you a very easy pagination tutorial. In this tutorial i have created a class using that class you can make pagination of static records and database records.
[wpdm_file id=20]DEMO
How to use:
index.php
<?php /** *$num_rows = First make a query to get the number of the results */ $num_rows = 50; include('paginator.class.php'); $pages = new Paginator; echo'<pre/>';print_r( $pages->getPaginateData($_GET['page'],$num_rows) ); echo $pages->displayHtmlPages($_GET['page'],$num_rows); ?>
Download source to get paginator.class.php
How to create pagination in PHP and MySQL with AJAX Version 1
How to create Advance Pagination in PHP & MySQL with jQuery Version 2
Tutorial Categories:
I really like the scripts and tuts here. Well done stuff.
The pagination class above is all fine and well but I’d say it would be more fruitful to write a tutorial about this, because coding a failsafe pagination requires some brain juice 🙂
i not be able to download this pagination script all though i subscribe and verify email link.
i subscribed but cant download?
Dear @disqus_HT6PDiDzT0:disqus list update in every 18 hours thats why you are not able to download it. Now list updated please go and download.
Please I could not download the script
same problem.
it will take 18 hours to upgrade subscription.
thats bad
I sent e-mail and confirmed it took more than 18 hours, you download the script thanks
why?
thanks huzoor