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

24 lines
563 B
PHP

<?php
error_log("hello");
include('includes/config/config.php');
include_once('log_entry.php');
$app_id = $_REQUEST['app_id'];
// $day= var_dump($date);
$sql = "SELECT *, DATE_FORMAT(date, '%Y-%m-%d') as date from appointment_details where id='".$app_id."' ";
error_log($sql."select_doc");
if (!$result = @mysqli_query($conn,$sql)) {
exit(mysqli_error($conn));
}
$data = array();
while ($row = mysqli_fetch_assoc($result)) {
$data= $row;
}
$data['count']=mysqli_num_rows($result);
error_log('data '.print_r($data,true));
echo json_encode($data);
?>