Jump to content

[SOLVED] Sort in reverse order? A simple question about MySQL


labourstart

Recommended Posts

In the PHP code for one of the pages on our site, we sort in descending order based on the date field.  The problem is that this means that the newest items added to the database  within a single date are moved to the bottom.  How can we keep the newest items on top?  We don't have a record ID or any other field to indicate which records are newest.

 

Here is the code we’re using:

 

    $query2 = “SELECT * FROM news WHERE language = ‘no’  order by date DESC LIMIT 100″;

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.