Results 1 to 3 of 3

Thread: PHP/MYSQL query chunks

  1. #1
    Join Date
    Aug 2010

    Lightbulb PHP/MYSQL query chunks

    Ok, i would have have searched for my answer, but honestly, i dont know what exactly to search for to find the answer. I've googled searched for hours, and spent some time searching this forum and still cant find the answer i'm looking for.

    I'm sure that although i cannot find the answer, this question has been asked... so excuse me for annoying anyone.

    I need to know, how to query in chunks. For instance, lets say i do a query for all the messages made by a particular user, but the query returned about 100,000 results. How do i make it so that it returns only, say, 100, and when an event is triggered, the next 100 is returned.... and so on, and so on... thanks in advanced...

  2. #2
    Join Date
    Aug 2004
    The search word you want is "pagination" (or "paginate"). Try something like "paginate database query", perhaps?
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

  3. #3
    Join Date
    Aug 2010
    THANK YOU! that helps alot! my biggest problem was not knowing what to call it.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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