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


Current Path : /var/www/website/gaccta/src/
Upload File :
Current File : /var/www/website/gaccta/src/servfee.php

<?php

function saveservfeedetails($aobj_context)
{
	session_start();
	$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);  
	include_once("/JSON.php");
	
	$json = new Services_JSON();
	$sfee_arr = stripslashes($aobj_context->mobj_data["sfee_arr"]);
	$mobj_jsondata = $json->decode($sfee_arr);
	$sfee_arr = get_object_vars($mobj_jsondata);
	
	 for($k=1;$k<=count($sfee_arr);$k++)
	{
		$query = "INSERT INTO servfeestr(fdegree,fcatcode,ffeeode,ffee) VALUES 
		('{$sfee_arr[$k]->deg}','{$sfee_arr[$k]->cat}','{$sfee_arr[$k]->fcd}','{$sfee_arr[$k]->fee}')";
		//var_dump($query);die();
		 $rst = $aobj_context->mobj_db->Execute($query);
	}
	if($rst)
	{	
		$success_msg= "Updated Successfully";
		echo $aobj_context->mobj_output->ToJSONEnvelope($success_msg,0,"success"); 
	}	
	else
	{	
		$error_msg = "Some Failure as occured";
		echo $aobj_context->mobj_output->ToJSONEnvelope($error_msg,-1,"error"); 
	}
}

/* function loadservicedetails($aobj_context)
{
	$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);  
	session_start();
	$userid = $_SESSION['userid'];
	
	$query1 = "SELECT * FROM orientdetl 
	where fuserid = '{$userid}'";
	$result1 = $aobj_context->mobj_db->GetAll($query1);
	if($result1)
	{	
		echo $aobj_context->mobj_output->ToJSONEnvelope($result1,0,"success"); 
	}	
	else
	{	
		$arr = "Some Failure as occured";
		echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"error"); 
	}
} */
?>