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

  • Home
  • SEARCH
  • 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 6600623
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:38:55+00:00 2026-05-25T18:38:55+00:00

Sorry if this question is confusing. I have inherited a site that is already

  • 0

Sorry if this question is confusing.

I have inherited a site that is already built, so I can’t really do anything too drastic.

The MYSQL query on a certain page uses LIMIT to only show the relevant entries like this:

comtitlesub.idcts = %s LIMIT 1,3

Skipping the first record and displaying the following three records.
I have been asked to add a new record, which is fine, but this is record number 7. Records 5 and 6 are not supposed to display on this page so changing the query to:

comtitlesub.idcts = %s LIMIT 1,6

displays all 6 records as you would expect.

One confusing thing is that I have altered the ID’s for each of the records so that my new one is ID 4, and yet this did not make a difference.

Is there a simple way to ‘skip’ the unwanted records or am I approaching this from the wrong direction?

  • 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-25T18:38:56+00:00Added an answer on May 25, 2026 at 6:38 pm

    add “order by comtitlesub.idcts” at the end of you query, but before the limit clause.

    ... comtitlesub.idcts = %s ORDER BY comtitlesub.idcts LIMIT 1,6
    

    basically, changing the id doesn’t reorder them, rows are stored in order they have been created, and retrieved that way by default.

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

Sidebar

Related Questions

Sorry if this question is confusing. I have a public static class inside my
Sorry if this question is too vague, but I'd rather not muddy it's point
Sorry if this question is very easy, but I can't find the answer anywhere.
Sorry if this question will sound too chaotic, feel free to edit it. I
Sorry if this question is answered already, but I didn't find a suitable answer.
Sorry if the question is bit confusing. This is similar to this question I
Sorry for this curiosity that I have. sha1 use [a-f0-9] chars for its hashing
I'm really not sure how to word this question, but here goes... I have
Sorry for this question to be a can you fix it one, but this
Sorry if this is a dumb question, but I have absolutely no idea how

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.