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.226.169.169
<?php
function loadcollegeprovision($aobj_context){
$json = new Services_JSON();
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$fcollege = stripslashes($aobj_context->mobj_data["fcollege"]);
$query1 = "SELECT c.fcollcode,d.fcollname
FROM entcolldeg c
INNER JOIN entcoll d ON d.fcollcode = c.fcollcode
WHERE fdegree = '{$fcollege}'";
$result1 = $aobj_context->mobj_db->GetAll($query1);
if($result1)
{
echo $aobj_context->mobj_output->ToJSONEnvelope($result1,0,"success");
}
else
{
$arr['msg'] = "Some Failure as occured";
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"error");
}
}
function loadstudcollcode($aobj_context){
$json = new Services_JSON();
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$fstuddeg = $aobj_context->mobj_data["fstuddeg"];
if($fstuddeg == 'All'){
$query1 = "SELECT distinct c.fcollcode,d.fcollname
FROM entcolldeg c
INNER JOIN entcoll d ON d.fcollcode = c.fcollcode";
}else{
$query1 = "SELECT distinct c.fcollcode,d.fcollname
FROM entcolldeg c
INNER JOIN entcoll d ON d.fcollcode = c.fcollcode
WHERE fdegree = '{$fstuddeg}'";
}
$result1 = $aobj_context->mobj_db->GetAll($query1);
// var_dump($result1);
// die();
if($result1)
{
echo $aobj_context->mobj_output->ToJSONEnvelope($result1,0,"success");
}
else
{
$arr['msg'] = "Some Failure as occured";
echo $aobj_context->mobj_output->ToJSONEnvelope($arr,-1,"error");
}
}
|