Andy11548 Posted May 9, 2014 Share Posted May 9, 2014 Hello All, If I had a table with results in from a Database, how would I go around moving a row up/down and refresh the data in the row? Would the best method be to have a seperate column in the database like 'RowOrder' and then once the arrow is pressed, swap it with the corresponding value and refresh the page? Thanks in advance, Andy Quote Link to comment https://forums.phpfreaks.com/topic/288381-jquery-re-order-items-in-database/ Share on other sites More sharing options...
Solution mac_gyver Posted May 10, 2014 Solution Share Posted May 10, 2014 Would the best method be to have a separate column in the database like 'RowOrder' yes. i would just submit all the final select option values and update the 'RowOrder' values to match the order in which they are in the submitted data. Quote Link to comment https://forums.phpfreaks.com/topic/288381-jquery-re-order-items-in-database/#findComment-1478957 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.