26 lines
908 B
PHP
26 lines
908 B
PHP
|
<?php
|
||
|
include('includes/config/config.php');
|
||
|
include('log_entry.php');
|
||
|
include('includes/functions.php');
|
||
|
mysqli_query($conn,'SET character_set_results=utf8');
|
||
|
$Id = $_REQUEST['id'];
|
||
|
$query_vac_select = "select * from vaccination_details where id = '".$Id."' ";
|
||
|
error_log("query: ".$query_vac_select);
|
||
|
if (!$result_vac_select = @mysqli_query($conn,$query_vac_select)) {
|
||
|
exit(mysqli_error($conn));
|
||
|
}
|
||
|
$data = array();
|
||
|
if(mysqli_num_rows($result_vac_select) > 0) {
|
||
|
while ($row_vac_select = @mysqli_fetch_assoc($result_vac_select)) {
|
||
|
$data = $row_vac_select;
|
||
|
// $data['vac_name']=getTableFieldValue('vaccine_master','vaccine_name','id',$row_vac_select['vac_id']);
|
||
|
}
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
$data['status'] = 200;
|
||
|
$data['message'] = "Data not found!";
|
||
|
}
|
||
|
// error_log('vac_data'.print_r($data,true));
|
||
|
echo json_encode($data);
|
||
|
?>
|