I noticed that Message-ID: <bmbk8p$nnb$1$8302bc10@news.demon.co.uk> from
scott contained the following:
[color=blue]
>The problem lies in the form handling script. How can I pass multiple sets
>of imageID / image_order values to an sql update query?[/color]
You can't. You'll have to write a loop and do it with multiple queries[color=blue]
>
>I can pass one set without problem. But I want the user to be able to edit
>all of the image_order values from one page.[/color]
You'll either have to write a loop to update all the values whether
changed or not or put a sequentially numbered checkbox beside the ones
which you want to change. Use a bit of javascript to check the box
automatically onChange for a bit of added functionality (but make it
clear the box must be checked for those without JS) Incidentally, this
simple bit of javascript had me stumped for ages until I found out that
the checkboxes would have to have a letter prefix
I use the same method to delete entries except on the first pass the
script simply writes hidden input for the records to be deleted. The
user then has to press a confirm button to complete the operation.
--
Geoff Berrow
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs
http://www.ckdog.co.uk/rfdmaker/