Deleting files with php and removing the reference from mysql
Hi guys,
I have built a little gallery manager in PHP / MySQL. I have created it so that you upload files to the server using PHP and then you leave a reference to the image inside the MySQL database. That all works fine.
The fun comes when I want to delete the images, I would need to unset them from the folder on the server and would also need to remove the reference from the database.
Does anyone know how that could be done?? I sorta know what the script should contain but I do not really have an idea how it would be done.
thanks, bye bye
|