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


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

<?php

function getUnivs($aobj_context)
{
	$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC); 

	$query = "";

	if($_SESSION['FUNIVCODE'] == NULL || $_SESSION['FUNIVCODE'] == 'NULL')
	{
		$query = "select funivcode, funivname, ffolder, fegov 
		from dbname 
		order by forder";
		$result = $aobj_context->mobj_db->GetAll($query);
	}else
	{
		$query = "select funivcode, funivname, ffolder, fegov 
		from dbname 
		where funivcode = '{$_SESSION['FUNIVCODE']}'
		order by forder";
		$result = $aobj_context->mobj_db->GetAll($query);
	}
	//var_dump($query);
	if($result)
	{
		$res['univs'] = $result;
		echo $aobj_context->mobj_output->ToJSONEnvelope($res,0,"success"); 
	}
	else
	{
		$arr['msg'] = 'Invalid Mobile No. / Password';
		echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"failure"); 	
	}	
}

?>