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 : 18.219.112.243


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

<?php

function getfaculty($aobj_context)
{
	$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC); 
  $univcode = $aobj_context->mobj_data['univcode'];
	
  $query = "select ifnull(ffaccode,'') as ffaccode,ifnull(ffacdesc,'') as ffacdesc 
  from masfac 
  where fdeleted = 'F' 
  order by ffaccode";
	$result = $aobj_context->pobj_db->GetAll($query);
	// var_dump($result);
	if($result)
	{
		echo $aobj_context->mobj_output->ToJSONEnvelope($result,0,"success"); 
	}
	else
	{
		$arr['msg'] = 'No faculty details found';
		echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure"); 	
	}	
}

?>