27 lines
942 B
PHP
27 lines
942 B
PHP
|
<?php
|
||
|
include('includes/config/config.php');
|
||
|
include('includes/functions.php');
|
||
|
include('log_entry.php');
|
||
|
error_log("Start Printing Request Attributes");
|
||
|
$requestStr = "";
|
||
|
foreach ($_REQUEST as $key => $value) {
|
||
|
$requestStr .= $key . " : " . $value . "\n";
|
||
|
error_log($key . " : " . $value . "<br />\r\n");
|
||
|
}
|
||
|
error_log("End Printing Request Attributes");
|
||
|
save_log($requestStr, 'interpretation', 'DELETE', 'delete_inter.php');
|
||
|
$query1 = "";
|
||
|
$query2 = "";
|
||
|
if (!empty($_REQUEST['id'])) {
|
||
|
$query1 = " delete from interpretation_master where id = '" . $_REQUEST['id'] . " ' ";
|
||
|
$query2 = " delete from interpretation_detail where interpretation_id = '" . $_REQUEST['id'] . " ' ";
|
||
|
//echo $query1;
|
||
|
if (!$result = @mysqli_query($conn, $query1) and !$result1 = @mysqli_query($conn, $query2)) {
|
||
|
|
||
|
exit(mysqli_error($conn));
|
||
|
echo json_encode("FAILURE");
|
||
|
} else {
|
||
|
echo json_encode("SUCCESS");
|
||
|
}
|
||
|
}
|