<?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,'proc item ','DELETE','delete_proc_item.php');
$query="";
if(!empty($_REQUEST['proc_id'])){
	$query = " delete from interm_procurement_items where item_id = '".$_REQUEST['item_id']." ' and interm_procurement_id='".$_REQUEST['proc_id']."'   ";
	
	if (!$result = @mysqli_query($conn,$query)) {
		
				exit(mysqli_error($conn));
				echo json_encode("FAILURE");
	}else{
			echo json_encode("SUCCESS");
	}
	
}

?>