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


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

<?php
function getGroupName($aobj_context){
  $aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
  $req = $aobj_context->req_body;

  $univcode = $aobj_context->mobj_data['univcode'];
  $regno = $aobj_context->mobj_data['regno'];
  $fcollcode = $aobj_context->mobj_data['fcollcode'];  
  var_dump($univcode);
  die();
  $query = "insert into logisys3_grv.grvhead(fgrvdate, fregno, fgrvfrom,fgrvemail,fgrvmobile,fgrvsub,
  fgrvmsg,fgrvuser,fgrvmode,funivcode,fstudemail,fgrvgroup)
  values (now(),'','{$idFname}','{$idEmail}','{$idMobile}',
  '{$fsubject}','{$fmessage}','Contact From','Uniclare Website','041','{$idEmail}', '200')";
  // var_dump($query);
  $result = $aobj_context->mobj_db->Execute($query);
  $rows_affected = $aobj_context->mobj_db->affected_rows();

  if($rows_affected >= 0)
  {	
    $msg= 'Successfully recorded';
    echo $aobj_context->mobj_output->ToJSONEnvelope($msg, 0,"success"); 
  }  
  else{
    $arr['msg'] = 'Query was not recorded.';
    echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure");
  }
}
?>