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


Current Path : /var/www/html/gach/adm_bcu/pgetadm/
Upload File :
Current File : /var/www/html/gach/adm_bcu/pgetadm/category.php

<?php
function getCategory($aobj_context){
  $aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC); 

  $query = "select fcategory,fdescpn from category 
  where ifnull(fdeleted,'') <> 'T'
  order by fcategory";
  $result = $aobj_context->mobj_db->GetAll($query);

  if(!$result && gettype($result) == 'boolean'){
    $arr['msg'] = "Error while fetching data";
    echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"Failure"); 
    return;
}

if(count($result) > 0) {
    $arr['category'] = $result;
  echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success"); 
  return;
}
else {
    $arr['msg'] = "No data found";
    echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"Failure"); 
    return;
}
}

function masbankdet($aobj_context)
{
  $appno = $aobj_context->mobj_data["appno"];

  $query1 = "select * from pgstudadm where fappno = '{$appno}'";
  $results1 = $aobj_context->mobj_db->GetRow($query1);	
  
  if($results1['FPAYSTATUS'] == 'success')
  {

    $data['paid'] = "success";
    echo $aobj_context->mobj_output->ToJSONEnvelope($data,-1,"Faiure"); 
    return;

  }else
  {
    $query = "select * from masbank where ifnull(fsuspend,'') <> 'T'";
	  $results = $aobj_context->mobj_db->GetAll($query);	

    $data['masbank'] = $results;
    echo $aobj_context->mobj_output->ToJSONEnvelope($data,0,"success"); 
    return;

  }

	
}
?>