Downloadable from here is a version 0.02 of the SLLists class I put together (mentioned in the previous post). This includes a generic PHP script that will:
- Load data from a database
- Display it in a chosen format on the page
- Allow the user to drag and drop the individual records to change the order
- Click save to persist the changes in the database
To use this all you really need to do is setup the database login properties, choose a table, and choose which fields contain the primary key, the displayable text, and the actual sort order.
That’s it!