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.147.77.119
<?php
function GetSubjectVivaList($aobj_context)
{
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
session_start();
$getdentalcollData="select distinct subject.fsubcode as code, subject.fsubname as name from subject, stud_det
where stud_det.fsubcode = subject.fsubcode and ifnull(stud_det.finterview,'') = 'T' order by subject.fsubcode";
$obj_dental_data = $aobj_context->mobj_db->GetAll($getdentalcollData);
if($obj_dental_data)
{
echo $aobj_context->mobj_output->ToJSONEnvelope($obj_dental_data,0,"success");
}
else
{
$data = 'Error in data retrieval';
echo $aobj_context->mobj_output->ToJSONEnvelope($data,-1,"failure");
}
}
?>
|