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.143.7.112
<?php
function loadclgnm($aobj_context)
{
session_start();
// $db = $aobj_context->mobj_data["db"];
$univcode = $aobj_context->mobj_data["univcode"];
$get_college_names="SELECT fcollcode,fcollname,ftown
FROM college
where ifnull(fdeleted,'') <> 'T'";
$lobj_get_college_names = $aobj_context->pobj_db->GetAll($get_college_names);
if($lobj_get_college_names!= 0)
echo $aobj_context->mobj_output->ToJSONEnvelope($lobj_get_college_names,0,"success");
else
echo $aobj_context->mobj_output->ToJSONEnvelope($lobj_get_college_names,-1,"Failure");
return;
}
function loadsspdegcodes($aobj_context)
{
session_start();
$univcode = $aobj_context->mobj_data["univcode"];
$get_college_names="SELECT distinct fdegree
FROM logisys3_comexam.ssp_univ_marks
where ifnull(fdeleted,'') <> 'T'
and funivcode = '{$univcode}'";
$lobj_get_college_names = $aobj_context->pobj_db->GetAll($get_college_names);
if($lobj_get_college_names)
{
echo $aobj_context->mobj_output->ToJSONEnvelope($lobj_get_college_names,0,"success");
return;
}
else
{
$data = 'Try after some time';
echo $aobj_context->mobj_output->ToJSONEnvelope($data,-1,"Failure");
return;
}
}
?>
|