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 : 52.15.190.187
Current Path : /var/www/html/mum/src/ |
| Current File : /var/www/html/mum/src/collegebank.php |
<?php
function Savecollegebank($aobj_context)
{
$lstr_param = stripslashes($aobj_context->mobj_data["cntrdetlobj"]);
// var_dump($lstr_param);
$per_arr_data = json_decode($lstr_param, true);
$cntrinfo = array();
for($i=0; $i<count($per_arr_data); $i++)
{
$cntrinfo[$per_arr_data[$i]['id']] = utf8_decode(urldecode($per_arr_data[$i]['value']));
}
// var_dump($cntrinfo);
$college = $_SESSION['collcode'];
if($college == '')
{
$data = 'Session Expired Login again and enter';
echo $aobj_context->mobj_output->ToJSONEnvelope($data,-1,"failure");
return;
}
$insert_qry="update college set fbank = '{$cntrinfo['fbank']}',
fbankbranch = '{$cntrinfo['fbankplace']}',
fbankaccno = '{$cntrinfo['fbankaccno']}',
fifsccode = '{$cntrinfo['fifsccode']}',
fbranchcode = '{$cntrinfo['fbranchcode']}',
fbankplace = '{$cntrinfo['fbankplace']}',
fchequefavour = '{$cntrinfo['fchequefavour']}'
where fcollcode = '{$college}'";
$studresults = $aobj_context->mobj_db->Execute($insert_qry);
//var_dump($insert_qry);
if($studresults)
{
$data = "updated seccufuly";
echo $aobj_context->mobj_output->ToJSONEnvelope($data,0,"success");
return;
}
else
{
$data = 'Updatetion failure';
echo $aobj_context->mobj_output->ToJSONEnvelope($data,-1,"failure");
return;
}
}
function getbankdet($aobj_context)
{
$college = $_SESSION['collcode'];
if($college == '')
{
$data = 'Session Expired Login again and enter';
echo $aobj_context->mobj_output->ToJSONEnvelope($data,-1,"failure");
return;
}
$select_qry = "select fbank, fbankbranch, fbankaccno, fifsccode, fchequefavour, fbankplace, fbranchcode
from college
where fcollcode = '{$college}'";
$cntrresults = $aobj_context->mobj_db->GetRow($select_qry);
$data = $cntrresults;
echo $aobj_context->mobj_output->ToJSONEnvelope($data,0,"success");
return;
}
?>
|