Edit file File name : tour-package-photo.php Content :<?php include '../../db.php'; $image = $_GET['img']; $file1 = '../../images/tour-package/gallery/' . $image; $file2 = '../../images/tour-package/gallery/thumb/' . $image; unlink($file1); unlink($file2); $sql = "DELETE FROM `tour-packages-photos` WHERE `image_name` = '$image'"; $db = new DB(); if ($db->readQuery($sql)) { header('Location: ' . $_SERVER['HTTP_REFERER']); } Save