Hey,
Part of my account deletion, I obviously want all items related to that user to be removed.
This includes from all the tables and and folders and images.
this while loop is supposed to delete all 'event' folders they manage and including the photo inside of it. and then obviously being deleted from the member table and event table, where there are generaly 3 link events to one member.
This is my current script.
All important parts are in bold
I rarely use while loops apart from recieve most data from a table.
But what this is supposed to do is check through the event table and find the event_id that the member owns, and on every one that it owns, delete the image (image01.jpg in that 1 folder (events/$event_id) and then delete the folder and finally deletes all the entries from that mmber.
I hope this makes sense?
and I know it's not that hard, but I can't set it out, and a the moment, when this is submitted, nothing is deleted at all.
Thanks for any help!!
Ben.