22 lines
628 B
PHP
22 lines
628 B
PHP
<?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);
|
|
}
|
|
} |