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.142.197.111
<?php
function savestudentdegree($aobj_context)
{
$oldmobileno = trim($aobj_context->mobj_data["oldmobileno"]);
$femail = trim($aobj_context->mobj_data["femail"]);
$fname = trim($aobj_context->mobj_data["fname"]);
$nfdegree = trim($aobj_context->mobj_data["nfdegree"]);
$efdegree = trim($aobj_context->mobj_data["efdegree"]);
$fcollcode = $_SESSION['collcode'];
$log_name = $_SESSION['usr'];
// $query1 = "insert into collstudchange(FOLDMOBILENO,FMOBILENO,FNAME,FOLDNAME,FEMAIL,FOLDEMAIL,FUNIVCODE,FUPDATEUSER)
// select fmobileno,'{$efdegree}','{$fname}',fname,'{$femail}', femail, '041', '{$log_name}' from
// collstud where fmobileno = '{$oldmobileno}'
// and fcollcode = '{$fcollcode}'";
// // var_dump($query1);
// $sresult1 = $aobj_context->mobj_db->Execute($query1);
// if($sresult1)
// {
$query = "update collstud set fdegree = '{$nfdegree}',
fname = '{$fname}', femail = '{$femail}', FUPDTIME = NOW(),
FUPDATEUSER = '{$log_name}'
where fmobileno = '{$oldmobileno}' and fcollcode = '{$fcollcode}'";
$sresult = $aobj_context->mobj_db->Execute($query);
// $query2 = "update studadm set fcontact_no = '{$fmobileno}'
// where fcontact_no = '{$oldmobileno}' and fcollcode = '{$fcollcode}'";
// $sresult2 = $aobj_context->mobj_db->Execute($query2);
// }
if($sresult)
{
$arr = "Updated Successfuly";
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
return;
}
else
{
$arr = "Updation Failure";
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"Failure");
return;
}
}
?>
|