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.15.239.207
<?php
function saveApplication($aobj_context){
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$req = $aobj_context->req_body['data'];
$user = $aobj_context->req_body['user'];
$query = "update pgstudadm set
FNATIONAL = '{$req['fnational']}',
FDOB = date_format(STR_TO_DATE('{$req['fdob']}','%d/%m/%Y'),'%Y-%m-%d'),
FFATNAME = '{$req['ffatname']}',
FFATOCC = '{$req['ffatocc']}',
FMOTNAME = '{$req['fmotname']}',
FMOTOCC = '{$req['fmotocc']}',
FOGIRL = '{$req['fogirl']}',
FCATEGORY = '{$req['fcategory']}',
FPMREGNO = '{$req['fpmregno']}',
FINCOME = '{$req['fincome']}',
FBPL = '{$req['fbpl']}',
FAADHARNO = '{$req['faadharno']}',
FSSLCREGNO = '{$req['fsslcregno']}',
FPERMADD1 = '{$req['fpermadd1']}',
FPERMADD2 = '{$req['fpermadd2']}',
FPERMADD3 = '{$req['fpermadd3']}',
FPERMADD4 = '{$req['fpermadd4']}',
FPERMDIST = '{$req['fpermdist']}',
FPERMSTATE = '{$req['fpermstate']}',
FPERMPIN = '{$req['fpermpin']}',
FCURRADD1 = '{$req['fcurradd1']}',
FCURRADD2 = '{$req['fcurradd2']}',
FCURRADD3 = '{$req['fcurradd3']}',
FCURRADD4 = '{$req['fcurradd4']}',
FCURRDIST = '{$req['fcurrdist']}',
FCURRSTATE = '{$req['fcurrstate']}',
FCURRPIN = '{$req['fcurrpin']}',
FEMAIL = '{$req['femail']}',
FKASHMIR = '{$req['fkashmir']}',
FHK = '{$req['fhk']}',
FJK = '{$req['fjk']}',
FRURAL = '{$req['frural']}',
FKANNADA = '{$req['fkannada']}',
FBCUE = '{$req['fbcue']}',
FBCUETYPE = '{$req['fbcuetype']}',
FSPORTS = '{$req['fsports']}',
FCULTURE = '{$req['fculture']}',
FNCC = '{$req['fncc']}',
FNSS = '{$req['fnss']}',
FDEFENCE = '{$req['fdefence']}',
FHANDICAP = '{$req['fhandicap']}',
FQDEGREE = '{$req['fqdegree']}',
FQUTYPE = '{$req['fqutype']}',
FQUNIV = '{$req['fquniv']}',
FQYEAR = '{$req['fqyear']}',
FQMONTH = '{$req['fqmonth']}',
FQREGNO = '{$req['fqregno']}',
FQCLASS = '{$req['fqclass']}',
FQMAXMARKS = '{$req['fqmaxmarks']}',
FQSECMARKS = '{$req['fqsecmarks']}',
FQPERCENTAGE = '{$req['fqpercentage']}',
FLANG1 = '{$req['flang1']}',
FLANG1MM = '{$req['flang1mm']}',
FLANG1MS = '{$req['flang1ms']}',
FLANG2 = '{$req['flang2']}',
FLANG2MM = '{$req['flang2mm']}',
FLANG2MS = '{$req['flang2ms']}',
FOPT1 = '{$req['fopt1']}',
FOPT1MM = '{$req['fopt1mm']}',
FOPT1MS = '{$req['fopt1ms']}',
FOPT2 = '{$req['fopt2']}',
FOPT2MM = '{$req['fopt2mm']}',
FOPT2MS = '{$req['fopt2ms']}',
FOPT3 = '{$req['fopt3']}',
FOPT3MM = '{$req['fopt3mm']}',
FOPT3MS = '{$req['fopt3ms']}',
FOPT4 = '{$req['fopt4']}',
FOPT4MM = '{$req['fopt4mm']}',
FOPT4MS = '{$req['fopt4ms']}',
FPUMAT = '{$req['fpumat']}',
FPUBIO = '{$req['fpubio']}',
FPGDEGREE = '{$req['fpgdegree']}',
FPGQDEGREE = '{$req['fpgqdegree']}',
FPGUNIVTYPE = '{$req['fpgunivtype']}',
FPGUNIV = '{$req['fpguniv']}',
FPGQCLASS = '{$req['fpgqclass']}',
FPGYEAR = '{$req['fpgyear']}',
FPGMONTH = '{$req['fpgmonth']}',
FPGREGNO = '{$req['fpgregno']}',
FPGMAXMARKS = '{$req['fpgmaxmarks']}',
FPGSECMARKS = '{$req['fpgsecmarks']}',
FOTHEXAM = '{$req['fothexam']}',
FSPONSOR = '{$req['fsponsor']}',
FOTHINFO = '{$req['fothinfo']}',
FTOTFEE = '{$req['ftotfee']}',
FDOCATTEST = '{$req['fdocattest']}',
FRESSTAT = '{$req['fresstat']}',
FAPPSTATUS = 'T',
FACKDATE = now(),
FACKUSER = '{$user['fname']}',
FAPPREMARKS = '{$req['fappremarks']}'
where fappno = '{$req['fappno']}'";
$results = $aobj_context->pobj_db->Execute($query);
if($results)
{
// $photo_filename = $req['fphotopath'];
// if($photo_filename != '' && $photo_filename != NULL)
// {
// $image_path = $aobj_context->main_src."upload/{$photo_filename}";
// $ext = pathinfo($photo_filename, PATHINFO_EXTENSION);
// $photo_filename = $req['fappno'];
// $photo_filename = $photo_filename.".".$ext;
// $full_file_path = $aobj_context->main_src."pget_photos/".$photo_filename;
// $photo = "pget_photos/".$photo_filename;
// if(copy($image_path,$full_file_path))
// {
// $update="update pgstudadm set FPHOTOPATH='{$photo}'
// where FAPPNO= '{$fappno}'";
// $up_obj=$aobj_context->mobj_db->Execute($update);
// unlink($image_path);
// }
// }
$data='Application details updated.';
$arr['msg']= $data;
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
return;
}
$data='Error while updation.';
$arr['msg']= $data;
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,0,"success");
return;
}
?>
|