Jump to content

Need Help Selecting Last 10 Rows From Database


gaza165

Recommended Posts

$message = mysql_query("SELECT * FROM chat ORDER BY timestamp LIMIT 10");

 

Nope still brings back the first 10 records...

 

...

 

SELECT * FROM chat ORDER BY timestamp DESC LIMIT 10

 

AND

 

SELECT * FROM chat ORDER BY timestamp LIMIT 10

 

Should not both bring back the same first 10 records.  Can I see a sample record from your table?

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.