godsent Posted February 3, 2009 Share Posted February 3, 2009 I was wondering how can i obtain like 10 last values form the table, now I'm using $query = "SELECT * FROM history ORDER by id DESC"; if where's any way to get last values by id? Link to comment https://forums.phpfreaks.com/topic/143670-solved-return-last-10-values-from-table/ Share on other sites More sharing options...
Philip Posted February 3, 2009 Share Posted February 3, 2009 SELECT * FROM `history` ORDER BY `id` DESC LIMIT 10 Link to comment https://forums.phpfreaks.com/topic/143670-solved-return-last-10-values-from-table/#findComment-753836 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.