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.145.105.199


Current Path : /proc/thread-self/root/var/www/html/admission/src/
Upload File :
Current File : //proc/thread-self/root/var/www/html/admission/src/uGetExamCenter.php

<?php

function uGetExamCenter($aobj_context)
{
    
 $aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
 $regno = $aobj_context->mobj_data['regno'];
 
 
 $query = " select c.fcollcode, CONCAT(c.fcollname, ', ', ifnull(c.ftown,'')) as college_name, 
 CONCAT(ifnull(c.fcolladd1,''), ' ',ifnull(c.fcolladd3,''), ' ', ifnull(c.fcolladd4,'')) as college_address, 
 ifnull(c.fcoordinates,'T') as college_location 
 from college c join candsum cs on c.fcollcode = cs.fcntrcode
 where cs.fregno = '{$regno}'";


 try {
     //code...
     $result = $aobj_context->pobj_db->GetRow($query);
     if(sizeof($result)>0)
     {
         echo $aobj_context->mobj_output->ToJSONEnvelope($result,0,"success");
         return;
     }  
     else
     {
        $errmsg = "No data found!";
        echo $aobj_context->mobj_output->ToJSONEnvelope($errmsg,-1,"failure");
        return;
     }
     

     
 } catch (\Throwable $th) {
     echo $th;
     $errmsg = "No data found!";
     echo $aobj_context->mobj_output->ToJSONEnvelope($errmsg,-1,"failure"); 
 }
 
}

?>