My table structure !
tblmodel
-fldmodelid
-fldmodelname
tblcardetail
-fldcardetailid
-fldmodelid
-flddefaultphoto
When I delete fldmodelid,i want to delete automatic tblcardetail.flddefaultphoto.Now i can delete in database.but.. the folder(../upload) that have photos.. i cann't delete that photos.. how to write unlink function!at another page ?