$settings="active"; $caller1="open"; $abroad_shipping_2="active"; date_default_timezone_set('Asia/Kolkata'); require_once '../template/superadmin/action_connection.php' ; include("../settings/adminsession.php"); include '../../include/conf.php'; set_time_limit(0); session_start(); $edit_id = $_GET['id']; $get_in = mysqli_query($conn, "select * from tbl_dr_events where id='$edit_id'"); $get_info = mysqli_fetch_array($get_in, MYSQLI_ASSOC); ?> if(isset($_POST['Submit'])) { $desc = mysqli_real_escape_string($conn, $_POST['description']); $event_color = $_POST['event_color']; $update = "update tbl_dr_events set description = '$desc', eventColor = '$event_color' where id='$edit_id'"; mysqli_query($conn, $update); header('location: dr_events_entry.php'); } ?>