<?php
 include("../conn.php");
 if (isset($_POST['submit'])) {
     $id=$_POST['id'];
     $sta=$_POST['status'];
 
     
     $sql = "UPDATE menu_cat SET status='$sta' WHERE id='$id' ";
     $query_run = mysqli_query($conn, $sql);
         
         
     if($query_run){
     echo"<script>alert('Status Updated'); window.location='../category.php'</script>";
     }
     }
 
       ?>