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 : 18.188.46.93
<?php
function getSeatAllotDet($aobj_context)
{
session_start();
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$query2 = "select ifnull(fappno,'') as fappno from entstudadm
where fmobileno = '{$_SESSION['MOBILE']}'";
$qry2 = $aobj_context->mobj_db->GetRow($query2);
$fappno = $qry2['fappno'];
$query3 = "select a.fappno, a.fdegree, d.fdescpn, a.fcollcode, c.fcollname, frank, fcatcode,
freserve, fallotno, date_format(fallotdate,'%d/%m/%Y') as fallotdate, fallotround from entseatallot a
inner join entdeg d on a.fdegree = d.fdegree inner join entcoll c on a.fcollcode = c.fcollcode
where fappno = '{$fappno}'";
// var_dump($query3);
$result2 = $aobj_context->mobj_db->GetRow($query3);
if(count($result2) > 0) {
$res['seat'] = $result2;
echo $aobj_context->mobj_output->ToJSONEnvelope($res,0,"success");
}
else {
$arr['msg'] = 'Error seat allotment details not available.';
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure");
}
return;
}
|