Jump to content

Last 10.


IwnfuM

Recommended Posts

Assuming you have an auto-increment index key named  `id`, in a table named `table`. The rest should be obvious . . .

 

"SELECT `field_1`, `field_2`, `field_3`, `etc` FROM `table` ORDER BY `id` DESC LIMIT 10"

Link to comment
https://forums.phpfreaks.com/topic/212593-last-10/#findComment-1107488
Share on other sites

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.