I want to be able to change the order_id of a list of page names in my database from a php page.
The php page lists all 4 page name with an up and a down arrow link next to each one.
I want to be able to click either arrow and for it to update the order_id accordingly in the database.
I have seen some examples of doing this with ajax and drag and drop but it is too much for what I need.
Does anyone know of any simple example or can point me in the right direction?
Code:
id | name | order_id
------------------------------
1 | welcome | 1
2 | about | 2
3 | information | 3
4 | contact | 4
The php page lists all 4 page name with an up and a down arrow link next to each one.
I want to be able to click either arrow and for it to update the order_id accordingly in the database.
I have seen some examples of doing this with ajax and drag and drop but it is too much for what I need.
Does anyone know of any simple example or can point me in the right direction?