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.148.105.152
<?php
function loadadmhostelfeedetails($aobj_context)
{
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$univcode = $aobj_context->mobj_data["univcode"];
$mob = $_SESSION['MOBILE'];
// var_dump($mob);
// die();
$query = "select fconsider,fmobileno from entstudhostel
where fmobileno = '{$mob}'";
$result = $aobj_context->mobj_db->GetRow($query);
$query1="select ifnull(fbankname,'') as fbankname,
ifnull(fname,'') as fname,
ifnull(fregno,'') as fregno,
ifnull(fappno,'') as fappno,
ifnull(famount,'') as famount,
ifnull(fcategory,'') as fcategory,
ifnull(faccno,'') as faccno,
ifnull(fifsc,'') as fifsc,
ifnull(fbranch,'') as fbranch ,
ifnull(fcategory,'') as fcategory,ifnull(fhpaymentstatus,'') as fhpaymentstatus
from entstudhostel
where fmobileno = '{$mob}'";
$result1 = $aobj_context->mobj_db->GetRow($query1);
$arr['cons'] = $result;
$arr['bnkdet'] = $result1;
// var_dump($result);
// die();
if($result){
echo $aobj_context->mobj_output->TOJSONEnvelope($arr,0,"success");
return;
}
else{
$arr['msg']="Failed to load";
echo $aobj_context->mobj_output->TOJSONEnvelope($arr,-1,"failed");
return;
}
}
function payadmhostelfee($aobj_context)
{
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$univcode = $aobj_context->mobj_data["univcode"];
$mob = $_SESSION['MOBILE'];
$admfee = $aobj_context->mobj_data["admfee"];
if($mob == ''){
$arr['msg']="please login";
echo $aobj_context->mobj_output->TOJSONEnvelope($arr,-1,"failed");
return;
}
$query1 = "select fhostalid from entstudhostel
where fmobileno = '{$mob}'";
$result1 = $aobj_context->mobj_db->GetRow($query1);
$arr['fhostalid'] = $result1['fhostalid'];
$query = "update entstudhostel
set fhostelamt = '{$admfee}'
where fmobileno = '{$mob}'";
$result = $aobj_context->mobj_db->Execute($query);
if($result){
echo $aobj_context->mobj_output->TOJSONEnvelope($arr,0,"success");
return;
}
else{
$arr['msg']="Failed to load";
echo $aobj_context->mobj_output->TOJSONEnvelope($arr,-1,"failed");
return;
}
}
|