Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.12.152.100
Current Path : /var/www/html/oums/api/ |
| Current File : /var/www/html/oums/api/employeelist.php |
<?php
include("sys_connect.php");
$query = "select * from masempl e left join masdept d on e.fdeptcode=d.fdeptcode
where ifnull(femplstat,'F')='T' order by femplname";
$res = mysqli_query($mycon, $query);
$count = mysqli_num_rows($res);
if($count > 0){
$data = [];
$i = 0;
while($row = mysqli_fetch_assoc($res)){
$data[$i] = $row;
$i++;
}
echo json_encode(array("error_code"=>"0", 'data'=>$data));
}else{
echo json_encode(array("error_code"=>"-1", 'msg'=>"No Data Found"));
}
?>
|