how do i unlink more than 1 image in my mysql at once

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
adsegzy
Forum Contributor
Posts: 184
Joined: Tue Jul 28, 2009 9:26 am

how do i unlink more than 1 image in my mysql at once

Post by adsegzy »

Hello friends,



I want to unlink more than 1 image from my mysql database at the same time. how do i echo them out and unlink them?

I will appreciate a sample syntax if available.



regards,

adsegzy
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Re: how do i unlink more than 1 image in my mysql at once

Post by superdezign »

The unlink() function deletes the image from the file system. Deleting from the database requires the use of a DELETE query. that's all I can really give you unless you are more specific...
Post Reply