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.22.79.165
<?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");
}
}
?>
|