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.15.214.244
Current Path : /var/www/oasis/src_old/ |
| Current File : /var/www/oasis/src_old/coll_exam_app_form.php |
<?php
function collExamAppfromParam($aobj_context)
{
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
@session_start();
$regno = $aobj_context->mobj_data["regno"];
$collegeCode =$_SESSION['collcode'];
$query = "select s.FDEGREE,s.FCOLLCODE,s.FNAME,ifnull(s.fexamappblk,'') as fexamappblk,
ifnull(s.fmp,'') as fmp,if(ifnull(s.FCASTE,'') = '', 'GM', s.FCASTE) as FCASTE ,
if(instr(c.fconstype, c.fexamno) > 0, 'Low Income', 'Normal Fee') as FCONSTYPE
from student s
inner join candsum c on s.fdegree = c.fdegree and s.fregno = c.fregno
where s.FREGNO='{$regno}' and s.fcollcode = '{$collegeCode}'";
// var_dump($query);
$rst = $aobj_context->mobj_db->GetRow($query);
// var_dump($rst);
if ($rst == false)
{
$arr = "Invalid Reg. No.";
echo $aobj_context->mobj_output->ToJSONEnvelope($arr, -1,"failure");
return;
}
else
{
$arr = $rst;
echo $aobj_context->mobj_output->ToJSONEnvelope($arr, 1,"success");
return;
}
}
?>
|