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 : 18.221.157.203


Current Path : /var/www/html/collportal/custom_src/
Upload File :
Current File : //var/www/html/collportal/custom_src/getTeacherlists.php

<?php
    function getTeahcerData($aobj_context){
        $aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);  
        $univcode = $aobj_context->mobj_data["univcode"];
        
        $query = "select distinct m.fteachcode, mas.fteachname, CONCAT(m.fteachcode, '-', mas.fteachname) AS teachername from 
                moderator m inner join masteach mas on mas.fteachcode = m.fteachcode union 
                select distinct q.fteachcode, mas.fteachname, CONCAT(q.fteachcode, '-', mas.fteachname) AS teachername  from 
                qpseterdet q inner join masteach mas on mas.fteachcode = q.fteachcode";
        $result = $aobj_context->mobj_db->GetAll($query); 
        if($result){
            echo $aobj_context->mobj_output->ToJSONEnvelope($result,0,"success");  
        }else{
            $arr['msg'] = 'No data found';
            echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure");
        }
    }
?>