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