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.141.27.70
Current Path : /var/www/oasis/src/ |
| Current File : /var/www/oasis/src/shortLists.php |
<?php
function saveAddShortList($aobj_context){
$degree = $aobj_context->mobj_data["degree"];
$semester = $aobj_context->mobj_data["semesterr"];
$iath = $aobj_context->mobj_data["iath"];
$iapr = $aobj_context->mobj_data["iapr"];
$iacomb = $aobj_context->mobj_data["iacomb"];
$attth = $aobj_context->mobj_data["attth"];
$attpr = $aobj_context->mobj_data["attpr"];
$attcomb = $aobj_context->mobj_data["attcomb"];
$query = "update degree set FCRIATH = '{$iath}', FCRIAPR = '{$iapr}', FCRIACOMB = '{$iacomb}',
FCRATTTH = '{$attth}', FCRATTPR = '{$attpr}', FCRATTCOMB = '{$attcomb}'
where fdegree = '{$degree}' and fexamno = '{$semester}'";
$result=$aobj_context->mobj_db->Execute($query);
if($result){
$arr['msg'] = "Successfully saved";
echo $aobj_context->mobj_output->TOJSONEnvelope($arr,0,"success");
}else{
$arr['msg'] = "failed to save";
echo $aobj_context->mobj_output->TOJSONEnvelope($arr,-1,"failure");
}
}
function getIAATTShortList($aobj_context){
$degree = $aobj_context->mobj_data["degree"];
$semester = $aobj_context->mobj_data["sem"];
$query = "select FCRIATH, FCRIAPR, FCRIACOMB,
FCRATTTH, FCRATTPR, FCRATTCOMB from degree
where fdegree = '{$degree}' and fexamno = '{$semester}'";
$result=$aobj_context->mobj_db->GetRow($query);
if($result){
echo $aobj_context->mobj_output->TOJSONEnvelope($result,0,"success");
}else{
$arr['msg'] = "No Data found";
echo $aobj_context->mobj_output->TOJSONEnvelope($arr,-1,"failure");
}
}
?>
|