Jump to content

deleting images


mjgdunne

Recommended Posts

Hi, I have images stored in a directory on the server. I have a delete function, which i have managed to get working, this deletes information held on a case from the database. Is there any way of deleting the images stored in the directory, the names of the images are stored in the database.

$id = $_GET['pid'];
mysql_query("DELETE FROM reff WHERE `pid`='$id'")
or die(mysql_error());

Link to comment
https://forums.phpfreaks.com/topic/104870-deleting-images/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.