#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2011
    Posts
    51
    Rep Power
    4

    Question Specific number of search results on a page


    Hi

    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.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2010
    Posts
    39
    Rep Power
    5
    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.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2011
    Posts
    51
    Rep Power
    4
    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...
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2010
    Posts
    39
    Rep Power
    5
    Doh! It should say "pagination script". Really sorry about that.
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2011
    Posts
    51
    Rep Power
    4
    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

    Thanks again

IMN logo majestic logo threadwatch logo seochat tools logo