unemployment Posted May 4, 2011 Share Posted May 4, 2011 How can I move a row to the bottom of my table structure in phpmyadmin? Quote Link to comment https://forums.phpfreaks.com/topic/235537-move-rows-in-table/ Share on other sites More sharing options...
fugix Posted May 4, 2011 Share Posted May 4, 2011 why would you need to do that if you dont mind me asking? Quote Link to comment https://forums.phpfreaks.com/topic/235537-move-rows-in-table/#findComment-1210605 Share on other sites More sharing options...
unemployment Posted May 4, 2011 Author Share Posted May 4, 2011 why would you need to do that if you dont mind me asking? When I use php to pull the data from the database it is displaying them in the order with which they appear in one of my tables. I want to be able to manipulate the order of my data in a foreach loop in a way. The order is random and is not standard ASC or DESC. Quote Link to comment https://forums.phpfreaks.com/topic/235537-move-rows-in-table/#findComment-1210626 Share on other sites More sharing options...
fugix Posted May 4, 2011 Share Posted May 4, 2011 in mysql, the ORDER BY FIELD() function allows you to create a custom order of values. Quote Link to comment https://forums.phpfreaks.com/topic/235537-move-rows-in-table/#findComment-1210631 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.