DELETE FROM vidsocial_marketPlacePhoto WHERE adID=directory exist ArrayINSERT INTO vidsocial_marketPlacePhoto(adPhotoID, adID, adURL) VALUE