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? Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.