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.92.96
<?php
function unicalreExamApplicationStatus($aobj_context)
{
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$univcode = $aobj_context->mobj_data["univcode"];
$regno = $aobj_context->mobj_data["regno"];
$query = "select appno as AppNo, date_format(fdate,'%d/%m/%Y') as AppliedDate,
if(fpaymentype = 'Other Banks',fpaygateway,fpaymentype) as paymentType, ftotalfee as FeesPaid,
ifnull(fackdate,'') as RecDate,
ifnull(fpaymentstatus,'') as paymentStatus
from appcandsum where fregno = '{$regno}'";
$result = $aobj_context->pobj_db->GetAll($query);
if(count($result) > 0)
{
// $res['examApp'] = $result;
echo $aobj_context->mobj_output->ToJSONEnvelope($result,0,"success");
return;
}
else
{
$arr['msg'] = 'Exam Application not found for the student';
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure");
return;
}
}
|