need a bit of help, I am trying to create a PHP script that will be initiated by a button from the admin page, which will find all image names in the database under "photos" and then delete any images from my directory 'userimages' that are no longer in use in the database?
I honestly have no idea where to start with this because its kind of confused me a bit? Is there a simple way to go about this?