<?php
 include("../conn.php");
 if (isset($_POST['submit'])) {
     $id=$_POST['id'];
   
 
     
     $sql= "DELETE FROM  `menu_cat` WHERE id='$id'";
     $query_run = mysqli_query($conn, $sql);
         
         
     if($query_run){
     echo"<script>alert('Menu category Deleted'); window.location='../category.php'</script>";
     }
     }
 
       ?>