<?php
include 'dbconnection.php';

$sno = $_POST['sno'];
$status = $_POST['status'];


$sql="UPDATE packages set sno='$sno',status='$status' WHERE  sno='$sno' ";	


if (!mysqli_query($conn,$sql))
  {
  die('Error: ' . mysqli_error());
  }
else {
header("location: ../view_packages?sno=$sno");
}
mysqli_close($conn)
?> 