Jump to content

SELECT last X amount of rows?


EchoFool

Recommended Posts

You need it in ASC order? Well you can always store the end results in an array and rsort the array:

 

SELECT * FROM table ORDER BY field DESC LIMIT 10

 

Should get you what you want, you will just have to manipulate the data when PHP has it.

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.