Im having a little trouble with a php script ive made.
you can see all the relevant info at http://click-media.co.uk/Client/Lisa/Admin/admin.php (password: “hey”)
I basically need the classes to be ordered by day/time when a new class is created, either by changing the column names in the database to a timestamp or something or by making a new column to and ordering it by this.. then using the php to switch the order values when the admin clicks “moveup”/”move down” next to the row.
any help would be much appreciated.
Thanks
You can implement this by doing the following:
class_orderORDER BY class_orderUPDATE table set class_order = THE_ORDER_OF_THE_CLASS_ABOVE WHERE id = TARGET_CLASSandUPDATE table set class_order = TARGET_CLASS_ORDER WHERE id = THE_CLASS_ABOVE