Re: [bang-phpug] Re: drag n drop interface to adjust the display order
- You could use YUI too. Check this out
----- Original Message -----
From: "Vinu Thomas" <vinuthomas@...>
Sent: Saturday, December 6, 2008 1:57:39 PM GMT +05:30 Chennai, Kolkata, Mumbai, New Delhi
Subject: [bang-phpug] Re: drag n drop interface to adjust the display order
You could use one of the JS libraries like Scriptaculous or jQuery to
help with the drag n drop ui.
You can use a column in the same table to keep track of the order.
--- In firstname.lastname@example.org , "geetanuj2002"
> Hello, I have a bunch of images that I am displaying on a web page and
> their path info is stored in a MySQL database. I'm using PHP and
> MySQL 5 (if that matters).
> I want to give the administrator the ability to go in and change the
> display order of the images to whatever order he likes, maybe I'll
> give him a drag n drop interface to adjust the display order.
> What is the best and most efficient method to store the display order
> in the database? Should I create a seperate table just for display
> order or just add a display order column to the DB? Thanks.