PHP Help Needed...

Status
Not open for further replies.

REY619

Ambassador of Buzz
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

हॉर्न ओके प्लीज़
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.
 
Status
Not open for further replies.
Top Bottom