DMXzone Database Updater PHP Support Product Page

Answered

update selected record within a list

Asked 13 Dec 2016 16:14:09
1
has this question
13 Dec 2016 16:14:09 Greta Garberini posted:
I have a database query and display a list of records. I need a button in each line which says something like "mark this record".

After pressing this button there should be an update for this specific record which puts a "Y" in a database marker (SET) field which only knows "Y" or "N". For one reason I cannot get this done although I am sure it worked before. I had used a form around the query, set a hidden field called "marker" with the value "Y", a second one which holds the id of the record to filter it. Then I put a submit button in the same line. I used notify2 to report a success on update. Funny enough it shows the notification but the action is not performed. The field'value stays at "N".

Any hint would help!

Replies

Replied 14 Dec 2016 09:37:57
14 Dec 2016 09:37:57 Teodor Kuduschiev replied:
Hello Greta,
From what i understand from your post, you'd like to achieve, what is shown here right: www.dmxzone.com/go/23306/delete-database-records but instead of deleting you'd like to update some value?
Just follow the video, but instead of delete, use update
Replied 14 Dec 2016 16:45:39
14 Dec 2016 16:45:39 Greta Garberini replied:
YES, YES, YES!

Thanks a zillion. From one reason or another I had been stuck with an older video-version where I used a form, hidden fields, a submit button, auto-scheduler and so on.

The version you describes here is ultra-easy and even elegant. Somehow I could not connect the two options to use this video both for the delete AND the update function.

thumbs up

Reply to this topic