22 lines
519 B
PHP
22 lines
519 B
PHP
<?php
|
|
include('includes/config/config.php');
|
|
include('includes/functions.php');
|
|
include('log_entry.php');
|
|
|
|
|
|
$emp_id = $_REQUEST['emp_id'];
|
|
|
|
$data = array();
|
|
|
|
$sql = "select height,weight,bmi from patient_master where id = '" . $emp_id . "'";
|
|
error_log("query ".$sql);
|
|
$result = mysqli_query($conn, $sql);
|
|
$row = mysqli_fetch_assoc($result);
|
|
|
|
$data['height'] = $row['height'];
|
|
$data['weight'] = $row['weight'];
|
|
$data['bmi'] = $row['bmi'];
|
|
|
|
error_log("final vital data " . print_r($data, true));
|
|
echo json_encode($data);
|