22 lines
466 B
PHP
22 lines
466 B
PHP
<?php
|
|
error_reporting(E_ERROR | E_PARSE);
|
|
include('includes/config/config.php');
|
|
$assign_checkup_id=$_REQUEST['assign_checkup_id'];
|
|
//echo $training_id;
|
|
if(!empty($assign_checkup_id)){
|
|
//update case
|
|
$query="delete from assign_checkup where assign_checkup_id='$assign_checkup_id'";
|
|
|
|
$result = @mysqli_query($conn,$query);
|
|
|
|
}
|
|
if (!$result) {
|
|
|
|
exit(mysqli_error($conn));
|
|
echo json_encode("FAILURE");
|
|
}
|
|
else
|
|
{
|
|
echo json_encode("SUCCESS");
|
|
}
|
|
?>
|