<?php
require_once "db.php";

$id = $_POST['id'];
$title = $_POST['title'];
$hall = $_POST['hall'];
$dept = $_POST['dept'];
$start = $_POST['start'];
$end = $_POST['end'];

$sqlUpdate = "UPDATE tbl_events SET title='$title',
Department='$dept',
Hall='$hall',
start='$start',
end='$end' WHERE id='$id'";
mysqli_query($conn, $sqlUpdate);
mysqli_close($conn);

?>