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″;

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.