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.73.167
<?php
function getAllSubForAttSumm($aobj_context){
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$collcode = $aobj_context->mobj_data['collcode'];
$degree = $aobj_context->mobj_data['degree'];
$sem = $aobj_context->mobj_data['sem'];
$query="SELECT DISTINCT ifnull(s.fcsubcode,'') AS `key`,ifnull(s.fcsubcode,'') AS `value`,
ifnull(concat(s.fsubname, ' - ', s.fcsubcode),'') as label
FROM subject s INNER JOIN attend a ON s.fdegree=a.fdegree AND a.fsubcode = s.fcsubcode
INNER JOIN usrsection u ON u.fdegree=a.fdegree
LEFT JOIN collatt c ON c.fdegree=a.fdegree AND c.fexamno=a.fexamno AND c.fsubcode=a.fsubcode
WHERE a.fdegree='{$degree}' AND a.fcollcode='{$collcode}'
AND s.fexamno='{$sem}'";
$result = $aobj_context->mobj_db->GetAll($query);
if($result)
{
echo $aobj_context->mobj_output->ToJSONEnvelope($result,0,"success");
}
else
{
$arr['msg'] = 'No Degree Found';
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure");
}
}
?>
|