SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Zealot
    Join Date
    Aug 2009
    Posts
    104
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    rss feed pagination

    Hi

    I have written php code to display job results based on a search string.

    For an example, my search criteria returned 400 jobs.

    The restriction is that I can only call 10 results at a time.

    So I would have to make this call 40 times, changing the page number to start each time.

    Is there some code out there that I could get to help me with this?


    Thanks.

  2. #2
    SitePoint Wizard silver trophybronze trophy Cups's Avatar
    Join Date
    Oct 2006
    Location
    France, deep rural.
    Posts
    6,869
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Do you have permission to do this? I would have thought they'd prefer to provide one hit rather than an extra 39 requests ....

    Are you planning to display them in pages of 10, or are you going to cache the results in groups of 10 at a time?

  3. #3
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,069
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    I agree with Cups, personally the way I have handled this in a recent project, is I downloaded the RSS feed XML, wrote it to a local file, and then used the local file for paging. I would then download the RSS feed XML once per day (or whatever the client requested) so I wouldn't tax the owner of the RSS feed.


Bookmarks

Posting Permissions

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