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 : 52.14.176.111
<?php
include("sys_connect.php");
error_reporting(E_ALL);
ini_set('display_errors', 1);
$query = "select fdeptshrt, fdeptcode, fdeptname, ifnull(flocation,'') as flocation
from masdept where ifnull(fdeleted,'') <> 'T' and ifnull(fdeptstat,'') = 'T'";
$myres = mysqli_query($mycon, $query);
$i = 0;
$res = [];
while($row = mysqli_fetch_assoc($myres)){
// var_dump($row);
$res[$i] = $row;
$i++;
}
// die();
echo json_encode(array("error_code" => -1, 'data'=> $res ));
|