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.143.214.100
<?php
function getFees($aobj_context)
{
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$fcatcode = $aobj_context->mobj_data["fcatcode"];
$query = "select fheadcode,ifnull(frepfee,0) as frepfee, fmaxfee from admfeestr
where fdegree ='PGET'
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;
}
}
function validateregno($aobj_context)
{
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$usn = $aobj_context->mobj_data["usn"];
$query = "select v.fregno,v.fdegree,d.fdescpn,v.fcollcode,v.fcombcode,c.fcollname,v.ftotmax,v.ftotsec,v.fsubtype,v.fsubcode,v.fexamno,v.fmaxmarks,v.fsecmarks,v.fdeleted,v.fclass
from entvalmarks v
inner join college c on c.fcollcode=v.fcollcode
inner join degree d on d.fdegree=v.fdegree
where fregno='{$usn}'
group by fsubcode";
$result1 = $aobj_context->mobj_db->GetAll($query);
// var_dump($result1);
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['vkuprevdata'] = $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;
}
}
|