Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    June 8th, 2005
    Posts
    68
    How to Limit search results page to 10 per page?
    When you perform a search at Google, how do they limit their results page at the bottom to show 10 at a time only. I did mine with PHP using loops but it shows all results pages all at once which could be alot of clutter.

  2. #2
    Internet Cowboy
    Join Date
    January 18th, 2005
    Posts
    4,662
    at the end of your $query statement, put something like Limit 0,10 before the ";

    This will start with record 0 and display 10 records.


  3. #3
    ABW Ambassador
    Join Date
    January 18th, 2005
    Posts
    551
    http://dev.mysql.com/doc/mysql/en/select.html

    or search for a tutorial on pagination

  4. #4
    ABW Ambassador FFoc's Avatar
    Join Date
    January 18th, 2005
    Posts
    1,015
    Quote Originally Posted by Wayder
    a tutorial on pagination
    These two articles should help:
    http://webmonkey.wired.com/webmonkey...tw=programming
    http://webmonkey.wired.com/webmonkey...tw=programming

  5. #5
    Member
    Join Date
    June 8th, 2005
    Posts
    68
    Thanks for the replies, I have done the Limiting of records per page but I think I would like is the limiting of the "results pages". Is this also done similarly?

  6. #6
    ABW Ambassador FFoc's Avatar
    Join Date
    January 18th, 2005
    Posts
    1,015
    Quote Originally Posted by UKJ
    Thanks for the replies, I have done the Limiting of records per page but I think I would like is the limiting of the "results pages". Is this also done similarly?
    You mean as in:
    << | 1 | 2 | 3 | ... | >>
    ??

    Easy enough to do..

    If this is the case, I can post a quickie script snippet for ya.

  7. #7
    Member
    Join Date
    June 8th, 2005
    Posts
    68
    Hi, Yup that's what I want to do


    Show 1| 2| to 10 only, then 20 to 30 and so forth.

  8. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. How to Link to ABW Search Results Page
    By MichaelColey in forum Midnight Cafe'
    Replies: 2
    Last Post: February 23rd, 2011, 09:46 PM
  2. no results on page 2 of search page
    By jazzylee77 in forum PopShops
    Replies: 1
    Last Post: August 10th, 2010, 07:30 PM
  3. New Google Search Results Page Layout?
    By GravityFed in forum Search Engine Optimization
    Replies: 0
    Last Post: June 21st, 2006, 03:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •