ESH/select_breport_master.php
2024-10-23 18:28:06 +05:30

30 lines
977 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,'business_reports_filter_master','SELECT','select_breport_master.php');
$id = $_REQUEST['id'];
$query = "select * from business_reports_filter_master where id = '".$id."' ";
error_log("query: ".$query);
if (!$result = @mysqli_query($conn,$query)) {
exit(mysqli_error($conn));
}
$data = array();
if(mysqli_num_rows($result) > 0) {
while ($row = @mysqli_fetch_assoc($result)) {
$data = $row;
}
}
foreach ( $data as $key => $value ) {
$requestStr.=$key . " : " . $value . "\n";
error_log ( $key . " : " . $value . "<br />\r\n" );
}
echo json_encode($data);
?>