Hi there, new to this forum and newbie to php.
I have a MySQL database with several tables, notably "user", "item", "picture".
Logged in users can add an item and a picture for that item but I currently do not have a feature to delete that picture for the respective item when users are in "edit item" page
Can anyone help me with a simple, script ?
The table "picture" holds the following rows:
id (which is the picture id)
fk_item_id (which is the ID of the item the picture belongs to)
file_path (which is the name of the picture)
The folder where the pictures are stored is called "pictures" and it is in the root folder.
Any help is greatly appreciated and I will provide whatever information is needed. I would also have the "unlink" feature as well.
Thank you kindly,
Luc