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 5950397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:23:16+00:00 2026-05-22T17:23:16+00:00

On single page, I am displaying 20 records at a time and with that

  • 0

On single page, I am displaying 20 records at a time and with that records, I am generating PDF with their profile to export / download for admin.

Now, what i want is, for ex. on 4th Page i am passing, 4 while actual records i will have will be 61 ~ 80.. and on..

for example:

3rd page: 41 ~ 60 records
4th page: 61 ~ 80 records
5th page: 81 ~ 100 records and so on..

Does Any one have idea, How can i pass dynamic Start and End query limit in this case?

  • 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-22T17:23:17+00:00Added an answer on May 22, 2026 at 5:23 pm

    Simple (don’t consider following as valid PHP code! Because…. it’s not):

    $page = $_GET['page'] ? $_GET['page'] : 1;
    $records_on_page = X;
    $offset = $records_on_page * ($page-1);
    $limit = "LIMIT $offset,$records_on_page"
    
    page, offset, on_page
    1, 00, 20
    2, 20, 20
    3, 40, 20
    4, 60, 20
    5, 80, 20
    etc.
    

    all logic.

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

Sidebar

Related Questions

Basically I have a single page on my site that I want any php
I have A single page that has the following structure <form runat=server><placeholder></placeholder></form> I have
I have a single page website that changes content based on variables passed through
I'm developing a single-page view for a resource that contains multiple nested resources. Using
If I have a single page with many forms of existing records: index.html.haml -
Just doing some Rails and noticed that when displaying 30 products on a single
I'm working on an app with a UIWebView that goes to a single page
My application is a single web page (myPage.html) displaying items on a Google Map.
I have a primefaces datatable where number of records are displaying. I want navigate
I am displaying multiple charts in a single page. I have enabled the zoom

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.