ESH/doctor_details.php

22 lines
628 B
PHP
Raw Permalink Normal View History

2024-10-23 18:28:06 +05:30
<?php
include('includes/config/config.php');
include('includes/functions.php');
$response = array();
if($conn) {
$sql = "SELECT * from doctor_details where section = 'opd'";
$result = mysqli_query($conn,$sql);
if($result) {
$i=0;
while($row = mysqli_fetch_assoc($result)){
$response[$i]['doctor_id'] = $row['doctor_id'];
$response[$i]['email_id'] = $row['email_id'];
$response[$i]['name'] = $row['name'];
$response[$i]['phone'] = $row['phone'];
$response[$i]['fess'] = $row['fess'];
$response[$i]['cyptam'] = $row['cyptam'];
$response[$i]['section'] = $row['section'];
$i++;
}
echo json_encode($response, JSON_PRETTY_PRINT);
}
}