<?php include('includes/config/config.php'); include ('includes/functions.php'); error_reporting(E_ERROR | E_PARSE); $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,'Questionnaire Master','DELETE','questionaire_master_delete.php'); $query=""; if(!empty($_REQUEST['question_id'])){ $query = " delete from questionaire_master where question_id = '".$_REQUEST['question_id']." ' "; if (!$result = @mysqli_query($conn,$query)) { exit(mysqli_error($conn)); echo json_encode("FAILURE"); }else{ echo json_encode("SUCCESS"); } }