View file File name : group-tours.php Content :<?php include '../../db.php'; include '../../function.php'; $id = $_GET['img']; $grouptourId = $_GET['img']; $grouptoursId = getGroupToursById($id); $file1 = '../../images/group-tours/' . $grouptourId; $file2 = '../../images/group-tours/thumb/' . $grouptourId; unlink($file1); unlink($file2); $sql = "DELETE FROM `group_tours` WHERE `id` = '$id'"; $db = new DB(); if ($db->readQuery($sql)) { header('Location: ' . $_SERVER['HTTP_REFERER']); }