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

30 lines
656 B
PHP

<?php
include ('includes/config/config.php');
include ('includes/auth/auth.php');
include ('includes/functions.php');
include('log_entry.php');
?>
<?php
$query = "select * from visitor_patient_master where doc_no ='".$_POST['adaharNo']."' ";
error_log("query: ".$query);
if (!$result = @mysqli_query($conn,$query)) {
exit(error_log(mysqli_error($conn)));
}
$data = array();
if(mysqli_num_rows($result) > 0) {
while ($row = mysqli_fetch_assoc($result)) {
//extract($row);
$data = $row;
}
}
error_log("data: ".print_r($data, true));
echo json_encode($data);
?>