27 lines
771 B
PHP
27 lines
771 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,'Vaccine Master','DELETE','delete_reffered_by.php');
|
|
$query="";
|
|
if(!empty($_REQUEST['id'])){
|
|
$query = " delete from referred_by_master where id = '".$_REQUEST['id']." ' ";
|
|
|
|
if (!$result = @mysqli_query($conn,$query)) {
|
|
|
|
exit(mysqli_error($conn));
|
|
echo json_encode("FAILURE");
|
|
}else{
|
|
echo json_encode("SUCCESS");
|
|
}
|
|
|
|
}
|
|
|
|
?>
|