ESH/delete_examination_list.php

25 lines
521 B
PHP
Raw Permalink Normal View History

2024-10-23 18:28:06 +05:30
<?php
include('includes/config/config.php');
$query="";
$id = $_REQUEST['ohc_type_id'];
error_log($id);
if(!empty($_REQUEST['ohc_type_id'])){
$query = "delete from checkup_form where checkup_id = '$id'";
$queryc = "delete from checkup_form_key_value where checkup_form_id = '$id'";
error_log($query);
if (!$result = @mysqli_query($conn,$query)) {
exit(mysqli_error($conn));
echo json_encode("FAILURE");
}else{
$result = @mysqli_query($conn,$queryc);
echo json_encode("SUCCESS");
}
}
?>