17 lines
397 B
PHP
17 lines
397 B
PHP
|
<?php
|
||
|
include('includes/config/config.php');
|
||
|
$query="";
|
||
|
if(!empty($_REQUEST['flex_employee_appointment_id'])){
|
||
|
$query = " delete from employee_appointment where appointment_id = '".$_REQUEST['flex_employee_appointment_id']."'";
|
||
|
|
||
|
if (!$result = @mysqli_query($conn,$query)) {
|
||
|
|
||
|
exit(mysqli_error($conn));
|
||
|
echo json_encode("FAILURE");
|
||
|
}else{
|
||
|
echo json_encode("SUCCESS");
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
?>
|