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.137.162.107
Current Path : /var/www/html/dud/src/ |
| Current File : //var/www/html/dud/src/collfundtransfer.php |
<?php
function updatecollfunddet($aobj_context)
{
$college = $_SESSION['collcode'];
$fremarks = trim($aobj_context->mobj_data["fremarks"]);
$famount = trim($aobj_context->mobj_data["famount"]);
if($college == '')
{
$data = 'Session Expired Login again and enter';
echo $aobj_context->mobj_output->ToJSONEnvelope($data,-1,"failure");
return;
}
$query = "insert into collfundtransfer(fcollcode,famount,fremarks) values ('{$college}','{$famount}',
'{$fremarks}')";
$studresults = $aobj_context->mobj_db->Execute($query);
$id = $aobj_context->mobj_db->insert_id();
if($studresults)
{
$data = $id;
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;
}
?>
|