Log in

View Full Version : how to restrict the records in PHP..??



RRVARMA
04-11-2008, 08:57 AM
I have about 5000 records to display. As it is taking a long time to display.. i like to display first 25 or 50 records first and then on clicking next it should show the next 50 records.. and if the user clicks previous they should get the previous 50 records.. but how to implement this in PHP..?? plz help..
Can this be implemented using JavaScript..?? which one is easy for the above problem..?? PHP or JavaScript..?? Please Help.. :confused:

jc_gmk
04-11-2008, 09:25 AM
Its paging your looking for, done with PHP.

Use this tutorial:
http://www.php-mysql-tutorial.com/php-mysql-paging.php

RRVARMA
04-11-2008, 09:57 AM
Thank you.. :)