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.135.186.233
<?php
function admissionfeedetails($aobj_context)
{
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$univcode = $aobj_context->mobj_data["univcode"];
$query1 = "select fname, fmobileno, fappno, fpaystatus, fcreatedate, IFNULL(fpayid, ' ') as fpayid FROM
entstudadm where fmobileno = '{$_SESSION['MOBILE']}'";
$result1 = $aobj_context->mobj_db->GetAll($query1);
$fappno = $result1[0]['fappno'];
$query = "SELECT IFNULL(ead.fname,'') AS fname,
IFNULL(eal.fappno,'') AS fappno,
IFNULL(eal.fallotno,'') AS fallotno,
IFNULL(ede.fregno,'') AS fregno,
IFNULL(eal.fpaymentstatus,'') AS fpaymentstatus,
IFNULL(ead.fcategory,'') AS fcategory,
IFNULL(ec.fcollname,'') AS fcollname,
IFNULL(eal.fdegree,'') AS fdegree,
IFNULL(eal.fpamount,'') AS famount,
ifnull(fquota,'') as fquota,
ifnull(fstudfrom,'') as fstudfrom
FROM entseatallot eal
INNER JOIN entstudadm ead ON eal.fappno = ead.fappno
INNER JOIN entoptdeg ede ON eal.fappno = ede.fappno
AND ede.fdegree = eal.fdegree
INNER JOIN entdeg d ON eal.fdegree = d.fdegree
INNER JOIN entcoll ec ON eal.fcollcode = ec.fcollcode
WHERE IFNULL(ead.fpaystatus,'') = 'success'
AND eal.fappno = '{$fappno}'";
$result=$aobj_context->mobj_db->GetRow($query);
if(count($result)>0){
echo $aobj_context->mobj_output->TOJSONEnvelope($result,0,"success");
}
else{
$arr['msg']="Failed to load";
echo $aobj_context->mobj_output->TOJSONEnvelope($arr,-1,"failed");
}
}
?>
|