0xV3NOMx
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.147.77.119


Current Path : /proc/thread-self/root/var/www/html/univadmin_bkp/univadmin/src/
Upload File :
Current File : //proc/thread-self/root/var/www/html/univadmin_bkp/univadmin/src/UpdateScanCodeList.php

<?php

function updateScanCodeList($aobj_context){
    $univcode = $aobj_context->mobj_data['univcode'];
    $req = $aobj_context->req_body['data'];
    // var_dump($req);
    // die();

    foreach ($req as $key => $v) {
        // var_dump($k);
        
        if($v['fbundno'] == "" && $v['fqpcode'] == "" && $v['fslno'] == ""){
            $arr['msg'] = 'Invalid Params';
            echo $aobj_context->mobj_output->ToJSONEnvelope($arr, -1, "failure");
            return;
        }
        $qry = "update res_stud set fpullstatus = 'T',
        fpulldate = Now()
        where fqpcode = '{$v['fqpcode']}' and fpacket = '{$v['fbundno']}' 
        and fregcode = '{$v['fregCode']}' and fpaymentstatus = 'success'";
        $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");
    }

}

?>