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.145.32.238
<?php
function getdropdown($aobj_context)
{
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$query1 = "SELECT fcatcode AS internal_code, CONCAT(fcatcode,' - ',fcatdespn) AS value FROM mascat order by forder";
$result1 = $aobj_context->mobj_db->GetAll($query1);
$arr['catcode']=$result1;
$query2 = "SELECT fdegncode AS internal_code, fdegndesc AS value FROM masdegn";
$result2 =$aobj_context->mobj_db->GetAll($query2);
$arr['post']=$result2;
$query3 = "SELECT fdegree AS internal_code, fdescpn AS value FROM mascourse";
$result3=$aobj_context->mobj_db->GetAll($query3);
$arr['course']=$result3;
$query4 = "SELECT fdegree AS internal_code, fdescpn AS value FROM mascourse
WHERE ffaculty = 'UG'";
$result4 = $aobj_context->mobj_db->GetAll($query4);
$arr['UG']=$result4;
$query5 = "SELECT fdegree AS internal_code, fdescpn AS value FROM mascourse
WHERE ffaculty = 'PG'";
$result5=$aobj_context->mobj_db->GetAll($query5);
$arr['PG']=$result5;
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
}
?>
|