View Single Post
  #1 (permalink)  
Old 02-10-2007, 11:49 AM
jontywagener's Avatar
jontywagener jontywagener is offline
Experienced Member
 
Join Date: Oct 2007
Location: South Africa
Gender: Male
Posts: 161
Default 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
Reply With Quote