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


Current Path : /proc/thread-self/root/var/www/html/admission/src/
Upload File :
Current File : //proc/thread-self/root/var/www/html/admission/src/uInsertOrUpdateCollegeDetails.php

<?php

function uInsertOrUpdateCollegeDetails($aobj_context)
{

    $req = $aobj_context->req_body;

    var_dump($req);
    $FCOLLCODE = $req['FCOLLCODE'];
    $FCOLLNAME = $req['FCOLLNAME'];
    $FTOWN = $req['FTOWN'];
    $FCOLLADD1 = $req['FCOLLADD1'];
    $FCOLLADD2 = $req['FCOLLADD2'];

    $FCOLLADD3 = $req['FCOLLADD3'];
    $FCOLLADD4 = $req['FCOLLADD4'];
    $FPRINCIPALNAME = $req['FPRINCIPALNAME'];
    $FPHONE = $req['FPHONE'];
    $FEMAILC = $req['FEMAILC'];

    $FADMSTATUS = $req['FADMSTATUS'];
    $FCOLLTYPE = $req['FCOLLTYPE'];
    $ffaculty = $req['ffaculty'];
    $fbank = $req['fbank'];

    $fbankbranch = $req['fbankbranch'];
    $fbankaccno = $req['fbankaccno'];
    $fifsccode = $req['fifsccode'];
    $fchequefavour = $req['fchequefavour'];
    $fbranchcode = $req['fbranchcode'];
    $fbankplace = $req['fbankplace'];

    


    $query="INSERT INTO college (FCOLLCODE,FCOLLNAME,FTOWN,FCOLLADD1,FCOLLADD2,FCOLLADD3,FCOLLADD4,FPRINCIPALNAME,FPHONE,FEMAILC,FADMSTATUS,FCOLLTYPE,ffaculty,fbank,fbankbranch,fbankaccno,fifsccode,fchequefavour,fbranchcode) VALUES('{$FCOLLCODE}','{$FCOLLNAME}','{$FTOWN}','{$FCOLLADD1}','{$FCOLLADD2}','{$FCOLLADD3}','{$FCOLLADD4}','{$FPRINCIPALNAME}','{$FPHONE}','{$FEMAILC}','{$FADMSTATUS}','{$FCOLLTYPE}','{$ffaculty}','{$fbank}','{$fbankbranch}','{$fbankaccno}','{$fifsccode}','{$fchequefavour}','{$fbranchcode}') 
     ON DUPLICATE KEY UPDATE 
     FCOLLCODE = VALUES(FCOLLCODE),
    FCOLLNAME = VALUES(FCOLLNAME),
    FTOWN = VALUES(FTOWN),
    FCOLLADD1 = VALUES(FCOLLADD1),
    FCOLLADD2 = VALUES(FCOLLADD2),
    FCOLLADD3 = VALUES(FCOLLADD3),
    FCOLLADD4 = VALUES(FCOLLADD4),

    FPRINCIPALNAME = VALUES(FPRINCIPALNAME),
    FPHONE = VALUES(FPHONE),
    FEMAILC = VALUES(FEMAILC),
    FADMSTATUS = VALUES(FADMSTATUS),

    FCOLLTYPE = VALUES(FCOLLTYPE),
    ffaculty = VALUES(ffaculty),
    fbank = VALUES(fbank),
    fbankbranch = VALUES(fbankbranch),
    fbankaccno = VALUES(fbankaccno),

    fifsccode = VALUES(fifsccode),
    fchequefavour = VALUES(fchequefavour),
    fbranchcode = VALUES(fbranchcode),
    fbankplace = VALUES(fbankplace)
    ";


   

$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);
}
  
}




?>