Forums
This topic is locked
Delete image with checkbox
05 Oct 2005 19:13:13 Jacques H posted:
I have some problem here. In a record thre are mulitple image fields like img1, img2, img3 etc. Now, in an update form I would like to remove one of the image. Can it be done with a checkbox, If yes how do I go about it to only delete the image and not the full record. Replies
Replied 12 Oct 2005 16:15:23
12 Oct 2005 16:15:23 Roddy Dairion replied:
Ok the way i would do that is pretty simple, if your extracting the data from a database table then all you do is include a checkbox next to each images then using an array you compare the id of the images being passed, and using mysql query you specify that you want to clear the image link from that table.
If you need more help i woulld need to see you sample coding first.
Roddy
If you need more help i woulld need to see you sample coding first.
Roddy