<?php include("header.php");?> <?php $id = $_GET['id']; if($id) { $del = mysqli_query($mysqli,"delete from `department` where `id`='".$id."'"); ?> <script> window.location.href='manage_department.php';</script> <?php }?>