Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7612475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:55:15+00:00 2026-05-31T01:55:15+00:00

I have an web application that when you go onto a page a ajax

  • 0

I have an web application that when you go onto a page a ajax call is made to get all the data from the database. It stores the data into a Global variable and as the user scrolls down the page it loads more into the page. Now I would like to be able to call the database and grab lets say 20 items from the database as they scroll down, instead of getting them all on the page load. Is there a good way of doing this? Thanks for any help.

here is what I would like to do
1.Page load (get first 20 items)
2.As they scroll down near bottom(Ajax call to get the next 20 and append it to table, list etc)

mysql help for the correct query.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T01:55:16+00:00Added an answer on May 31, 2026 at 1:55 am

    MySQL supports the LIMIT keyword on selects, e.g.:

    SELECT foo,bar
    FROM   charlie
    WHERE  criterion = value
    LIMIT  20
    

    It accepts up to two arguments. If you supply one, it’s the number of rows (max) to return. If you supply two, the first is an offset (skip) value, and the second is a limit. E.g. (from the docs):

    SELECT * FROM tbl LIMIT 5,10;  # Retrieve rows 6-15
    

    Combine LIMIT with ORDER BY and barring inserts, you have paging.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a web application that produces reports. Data are taken from a database.
We have a web application that gets its data from a certain database. The
I have a web application that has a page that loads the content from
I have a web application that runs fine under IIS5 or IIS6. I just
I have a web application that uses TONS of javascript, and as usual, there
I have a web application that uses AzMan authorization to grant different functionality to
I have a web application that uses two databases. DB1 Users perform their CRUD
I have a web application that functions as a dashboard, allowing a user to
I have a web application that works in our stage/test environment fine but once
I have a web application that is using both jQuery 1.2.6 and YUI 2.6.0

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.