<?php include 'config.php'; $del=$_REQUEST['id']; $query="DELETE from sp_exam_category where cat_id='$del'"; $sql=$db->prepare($query); $sql->execute(); header('location:exam_list.php'); ?>