<?php include('includes/config/config.php'); include ('log_entry.php'); include ('includes/functions.php'); $query="update employee_appointment set appointment_type='O' where appointment_id='".$_POST['appoint']."'"; if (!$result = @mysqli_query($conn,$query)) { error_log("Error updating case".mysqli_error($conn).". Error Query:".$query); die(mysqli_error($conn)); } ?>