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.116.52.29
<?php
function getTeachBankDet($aobj_context){
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$univcode = $aobj_context->mobj_data["univcode"];
$userid = $aobj_context->mobj_data["userid"];
$query = "select faccno, fifsccode,fbankname,fpanno from masteach
where fteachcode = '{$userid}'";
$result = $aobj_context->pobj_db->GetRow($query);
if(count($result) > 0)
{
echo $aobj_context->mobj_output->ToJSONEnvelope($result,0,"success");
}
else
{
$arr['msg'] = 'Bank Details Not Found';
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure");
}
}
function saveBankDetails($aobj_context){
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$univcode = $aobj_context->mobj_data["univcode"];
$userid = $aobj_context->mobj_data["userid"];
$bankNam = $aobj_context->mobj_data["bankNam"];
$acNo = $aobj_context->mobj_data["acNo"];
$ifscNo = $aobj_context->mobj_data["ifscNo"];
$panno = $aobj_context->mobj_data["panno"];
$query = " update masteach set faccno = '{$acNo}' , fifsccode = '{$ifscNo}' , fbankname = '{$bankNam}' , fpanno = '{$panno}'
where fteachcode = '{$userid}'";
$result = $aobj_context->pobj_db->Execute($query);
if($result)
{
$arr['msg'] = 'Bank Details Updated';
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
}
else
{
$arr['msg'] = 'Bank Details Not Updated';
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure");
}
}
?>
|