I currently have a table listing all of the "products" that are in the database on my page. There is a checkbox next to each product/listing so you can delete multiple products at once.
I have the delete function working well with the checkboxes, deleting the selected products from the database, but I can't seem to get the second half to work, which is the part that needs to go into the server directory named "gallery" and deleting the image that belongs to the products that have been deleted.

This worked thank you! Although I did need to change this part "while ($deleteImage = mysql_fetch_array($deleteImgQuery))" to "while ($deleteImage = mysql_fetch_array($res))" Thanks!
–
CatiaFeb 16 '12 at 17:56