aahaider Posted September 16, 2012 Share Posted September 16, 2012 Hi Friends, Here is a table TABLE... -------------------------------- ID Name Age --------------------------------- 1 arfan 22 2 azeem 18 3 haider 21 4 saleem 22 5 another 19 ------------------------------------- I want get data from database in this order. another 19 saleem 22 haider 21 azeem 18 arfan 22 ------------------------------------------------- Please Help me....THANKS.......... Link to comment https://forums.phpfreaks.com/topic/268437-how-to-get-a-data-from-database-in-bottom-to-top-order/ Share on other sites More sharing options...
Christian F. Posted September 16, 2012 Share Posted September 16, 2012 What order is that, specifically? From where I'm sitting it looks quite random, to be honest. Link to comment https://forums.phpfreaks.com/topic/268437-how-to-get-a-data-from-database-in-bottom-to-top-order/#findComment-1378397 Share on other sites More sharing options...
Pikachu2000 Posted September 16, 2012 Share Posted September 16, 2012 What order is that, specifically? From where I'm sitting it looks quite random, to be honest. ORDER BY ID DESC Link to comment https://forums.phpfreaks.com/topic/268437-how-to-get-a-data-from-database-in-bottom-to-top-order/#findComment-1378398 Share on other sites More sharing options...
Christian F. Posted September 16, 2012 Share Posted September 16, 2012 That's not what I understood from his post, Pikachu. As he specified the table design and example data first, then the order in which he wanted the rows to be fetched. aahider: As you can probably see you haven't posted enough information, leading to us being uncertain about what it is you want to accomplish. I recommend posting all relevant information about the issue you're having, with all associated details, whenever you ask for help. That way we'll know exactly what it is you want to do, and thus be able to give you accurate and quick assistance. As a part of that I do recommend that you read this article. Link to comment https://forums.phpfreaks.com/topic/268437-how-to-get-a-data-from-database-in-bottom-to-top-order/#findComment-1378442 Share on other sites More sharing options...
Pikachu2000 Posted September 16, 2012 Share Posted September 16, 2012 It seems pretty obvious to me, really. Link to comment https://forums.phpfreaks.com/topic/268437-how-to-get-a-data-from-database-in-bottom-to-top-order/#findComment-1378445 Share on other sites More sharing options...
Christian F. Posted September 16, 2012 Share Posted September 16, 2012 Gah.... I'm going to bed. You're right, I'm just faffing about apparently. Link to comment https://forums.phpfreaks.com/topic/268437-how-to-get-a-data-from-database-in-bottom-to-top-order/#findComment-1378446 Share on other sites More sharing options...
jazzman1 Posted September 16, 2012 Share Posted September 16, 2012 @Christian, you like the simple (not elementary) things. Simple question == simple answer, right? Link to comment https://forums.phpfreaks.com/topic/268437-how-to-get-a-data-from-database-in-bottom-to-top-order/#findComment-1378447 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.