ohctech_p8/select_appointment_script.php

31 lines
649 B
PHP
Raw Normal View History

2024-10-16 19:18:52 +05:30
<?php
include('includes/config/config.php');
if(isset($_REQUEST['appointment_id'])){
$sql_for_appointment="select * from employee_appointment where appointment_id='".$_REQUEST['appointment_id']."'";
//echo "query:".$sql_for_appointment;
if (!$result = @mysqli_query($conn,$sql_for_appointment)) {
2024-11-02 18:03:13 +05:30
die(mysqli_error($conn));
2024-10-16 19:18:52 +05:30
}
if(mysqli_num_rows($result) > 0) {
while ($row = mysqli_fetch_assoc($result)) {
//extract($row);
$data = $row;
}
}
else
{
$data['status'] = 200;
$data['message'] = "Data not found!";
}
}
//echo $data;
echo json_encode($data);
?>