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?
add “
order by comtitlesub.idcts” at the end of you query, but before the limit clause.basically, changing the id doesn’t reorder them, rows are stored in order they have been created, and retrieved that way by default.