30 lines
656 B
PHP
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);
|
|
?>
|