ESH/delete_client_appointment_list.php
2024-10-23 18:28:06 +05:30

21 lines
451 B
PHP

<?php
include('includes/config/config.php');
include('log_entry.php');
// error_reporting(E_ERROR | E_PARSE);
$appointment_id=$_REQUEST['appointment_id'];
$query="";
if(!empty($appointment_id)){
$query="delete from appointment_management_list where appointment_id=$appointment_id" ;
if (!$result = @mysqli_query($conn,$query)) {
exit(error_log(mysqli_error()));
echo json_encode("FAILURE");
}else{
echo json_encode("SUCCESS");
}
}
?>