proper use of unlink() for deleting record and image
Posted on 2005-05-09
hi...is there anyone who can show me the proper code for using unlink() ? I have a table in the database with image path on it.
so it looks like this
listingID | listingTitle | desc | image | date
1 |cheap psx | good and cheap psx | c:/images/psx.jpg | 8/5/2005
I wanted to delete this listing once it get past its expiry date(30 days from the listing) The problem is the image would still be in the database...I have read a thing or two about unlink...but i'm not sure of its proper usage.
I am using php, mysql, apache and windows 2000. Thank you.