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.143.7.112
<?php
function uGetResultSemester($aobj_context)
{
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$regno = $aobj_context->mobj_data['regno'];
$query = "select r.fexamno, d.FEXAMNAME from res_fee r inner join degree d on (r.fdegree = d.fdegree and r.fexamno=d.fexamno) where r.fregno='{$regno}' order by r.fexamno desc";
try {
//code...
$result = $aobj_context->pobj_db->GetAll($query);
if(sizeof($result)>0)
{
echo $aobj_context->mobj_output->ToJSONEnvelope($result,0,"success");
return;
}
else
{
$errmsg = "No data found!";
echo $aobj_context->mobj_output->ToJSONEnvelope($errmsg,-1,"failure");
return;
}
} catch (\Throwable $th) {
echo $th;
$errmsg = "No data found!";
echo $aobj_context->mobj_output->ToJSONEnvelope($errmsg,-1,"failure");
}
}
?>
|