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