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.189.189.19
<?php
function saveeducationaldetails($aobj_context)
{
session_start();
$userid = $_SESSION['userid'];
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
include_once("/JSON.php");
$json = new Services_JSON();
$fieldarrvalue = stripslashes($aobj_context->mobj_data["fieldarrvalue"]);
$ug = stripslashes($aobj_context->mobj_data["ug"]);
$pg = stripslashes($aobj_context->mobj_data["pg"]);
$persnaldet = $json->decode($fieldarrvalue);
$persarr = get_object_vars($persnaldet);
$query = "insert into pubdetl(fuserid, fpubtype, fpublished, faccepted, fcommunicated)
values ('{$userid}','','{$persarr['T176']}','{$persarr['T177']}','{$persarr['T178']}')
,('{$userid}','','{$persarr['T179']}','{$persarr['T180']}','{$persarr['T181']}')
,('{$userid}','','{$persarr['T182']}','{$persarr['T183']}','{$persarr['T184']}')
,('{$userid}','','{$persarr['T185']}','{$persarr['T186']}','{$persarr['T187']}')
,('{$userid}','','{$persarr['T188']}','{$persarr['T189']}','{$persarr['T190']}')
,('{$userid}','','{$persarr['T191']}','{$persarr['T192']}','{$persarr['T193']}')
,('{$userid}','','{$persarr['T194']}','{$persarr['T195']}','{$persarr['T196']}')
,('{$userid}','','{$persarr['T197']}','{$persarr['T198']}','{$persarr['T199']}')
,('{$userid}','','{$persarr['T200']}','{$persarr['T201']}','{$persarr['T202']}')
,('{$userid}','','{$persarr['T203']}','{$persarr['T204']}','{$persarr['T205']}')
,('{$userid}','','{$persarr['T206']}','{$persarr['T207']}','{$persarr['T208']}')
,('{$userid}','','{$persarr['T209']}','{$persarr['T210']}','{$persarr['T211']}')
,('{$userid}','','{$persarr['T212']}','{$persarr['T213']}','{$persarr['T214']}')
,('{$userid}','','{$persarr['T215']}','{$persarr['T216']}','{$persarr['T217']}')";
$result = $aobj_context->mobj_db->Execute($query);
if($result)
{
$arr='Updated Successfuly';
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
return;
}
else
{
$arr='Insertion Failed';
echo $aobj_context->mobj_output->ToJSONEnvelope($lquery,-1,"failure");
return;
}
}
?>
|