DIGIT-ARC read-only archive · snapshot: July 23, 2026

PHP Help Needed...

2 posts · originally from https://geek.digit.in/community/threads/php-help-needed.79206/

R
REY619 Original post #1
Jan 28, 2008 at 5:45 PM
My site use PHP as scripting language... I created a simple search menu to fetch results from the database, and display the results...
It works fine and results are displayed as per the need of the user...
But the problem is that it displays all of the found results on a single page, i want to display 10 results per page, if there are more than 10 results it should automatically create next page link at the bottom...
I am unable to solve this problem... If there are many results, like 100, all of them are displayed on same page and it looks like a mess......
Please can someone help...
Thanx.. :(
victor_rambo
Jan 28, 2008 at 6:11 PM
Use embedded URL to get LIMIT of query.
eg: *domain.com/search.php?query=STRING&startfrom=11&upto=20
Use IF operator to see if LIMIt varibales are null. If NULL set to 1 and 10.
And for making the embedded URL use loops and manipulate incrementer mathematically.