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.142.197.111
<?php
function getboard($aobj_context)
{
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$univcode = $aobj_context->mobj_data['univcode'];
$query = "select ifnull(fboardcode,'') as fboardcode,ifnull(fboardname,'') as fboardname,ifnull(fdeleted,'F') as fdeleted
from masboard where ifnull(fdeleted,'') <> 'T'
order by fboardcode";//where fdeleted = 'F'
$result = $aobj_context->pobj_db->GetAll($query);
// var_dump($result);
if($result)
{
echo $aobj_context->mobj_output->ToJSONEnvelope($result,0,"success");
}
else
{
$arr['msg'] = 'No Boards details found';
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure");
}
}
?>
|