I am building some sort of a CMS in PHP and i ran into an issue, hoping you guys can help me out with it.
I'll post an example of what my database looks like and what i need to be done.
ID | Name | Order
1 | A1 | 1
2 | A2 | 3
3 | A3 | 4
4 | A4 | 2
What i need is a way to edit the 'order' column of DB dynamically, as in if i was to change the order of 'A2' to '2', it will automatically change the order of 'A4' which was originally '2' and update it to whatever order 'A2' was, which is '3'
If this wasn't clear enough, i would be more than happy to screen shot my database to clarify it more.
Thanks in advance