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


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

<?php

function retBatchDet($aobj_context)
{

	$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC); 
  
    $univcode = $aobj_context->mobj_data["univcode"];
    $collcode = $aobj_context->mobj_data["collcode"];
    $batch = $aobj_context->mobj_data["batch"];

    $query   = "select m.fteachcode, m.fteachname, t.fqpcode, q.fsubname, t.fvalno, t.fsysdate, t.fstatus,
    count(ifnull(t.fstatus, ''))as assigned
    from tdvs_tabsum t inner join tdvs_masteach m on t.fteachcode = m.fteachcode
    inner join tdvs_masqp q on q.fqpcode = t.fqpcode  
    where t.FBATCHNO = '{$batch}' group by fstatus";

    $results = $aobj_context->pobj_db->GetRow($query);
    
    if($results)
    {
        echo $aobj_context->mobj_output->ToJSONEnvelope($results,0,"success"); 
        return;	
    }
    else
    {
        $arr['msg'] = "No Data Found";
        echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"error"); 
        return;
    }
	
	
}




?>