Dynamic Menu Sorting

A

Angelos

Hello again,

I have this dynamic menu and I want to change the order of the menu items...
I added a column in the database wich has an integer value for ordering the
menuitems.
But the only way is by hardcoding them into the database.

I would like a way to sort them with drag-and-drop or with up/down arrows.

Do you think that except PHP & MYsql I will need Javascript as well ?
Any ideas how to do that ?

Thanks a lot,
Angelos.
 
J

Joshie Surber

I would like a way to sort them with drag-and-drop or with up/down arrows.
Do you think that except PHP & MYsql I will need Javascript as well ?
Any ideas how to do that ?

While JS is the easiest way to do it (several scripts are available
online) I would reccomend a PHP backup to do the same (just in case).
Examine the source for the JS to get some ideas on how to implement it
in PHP.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top