I have a database table with a number of items in there:
ID Name
1 How-to
2 Introduction
3 Further Study
4 ....
The user enters information in the database, in random order. However, once that is done he wants to change the order of items. How best approach this problem? I've seen on other sites that they put the items in a listbox, and with Javascript you can select an item and move it up or down the list. After clicking submit, the items are displayed on the screen in the chosen order.
For example, like this:
ID Name
2 Introduction
1 How-to
3 Further Study
(a helper-field will be necessary to store the chosen order)
Does someone have a starting-point to solve this problem, an article you've read somewhere or some experience with this?
Thanks in advance,
Bjorn