January 5th, 2011, 06:38 AM
Specific number of search results on a page
I am planning to implement a search function in my website and I think I am going for this one: devshed.com/c/a/MySQL/Building-a-Search-Engine-with-MySQL-and-PHP-5/
Now, my question is: how do I get the first 20 (or something like that) results on the first page and include a second result page with result 21-40 and if there are even more results page 3 with 41-60 and so on. I'd prefer this instead of having all the results in one single page as the results could include pictures which would slow down everything.
January 5th, 2011, 12:19 PM
You would have to add a oagination script (since you don't code yourself?).
Look for "php pagination script" in Google and you will find several.
January 5th, 2011, 02:51 PM
Oh, thanks for the answer
I do script a little bit and I'm still learning but don't have a lot of time to learn complexer scripts...
January 5th, 2011, 04:38 PM
Doh! It should say "pagination script". Really sorry about that.
January 5th, 2011, 05:38 PM
Don't worry about that I wonder if I made a spelling mistake everytime I post a comment on the internet. I did think that oagination was an english word I didn't know but I figured it out