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.117.119.34
<?php
function updateChkListDet($aobj_context){
// $aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$univcode = $aobj_context->mobj_data['univcode'];
$req = $aobj_context->req_body['data'];
foreach ($req as $k => $v) {
if($v['fbundleno'] == "" && $v['fpacket'] == "" && $v['fregcode'] == ""){
$arr['msg'] = 'Invalid Params';
echo $aobj_context->mobj_output->ToJSONEnvelope($arr, -1, "failure");
return;
}
$qry = "update res_stud set fpullstatus = '{$v['fpullstatus']}',
fpulldate = Now()
where fqpcode = '{$v['fqpcode']}' and fbundleno = '{$v['fbundleno']}' and
fpacket = '{$v['fpacket']}' and fregcode = '{$v['fregcode']}'";
$result = $aobj_context->pobj_db->Execute($qry);
}
if($result && count($result)>0){
$arr['msg'] = "Updated successfully.";
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
}else{
$arr['msg'] = 'Details was not updated, please try after sometime.';
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure");
}
}
?>
|