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.145.12.185
<?php
function uGetSpecificCollege($aobj_context)
{
$fcollcode = $aobj_context->mobj_data['collcode'];
$query ="select FCOLLCODE,FCOLLNAME,
ifnull(FTOWN,'') as FTOWN,
ifnull(FCOLLADD1,'') as FCOLLADD1,
ifnull(FCOLLADD2,'') as FCOLLADD2,
ifnull(FCOLLADD3,'') as FCOLLADD3,
ifnull(FCOLLADD4,'') as FCOLLADD4,
ifnull(FPRINCIPALNAME,'') as FPRINCIPALNAME,
ifnull(FPHONE,'') as FPHONE,
ifnull(FEMAIL,'') as FEMAILC,
ifnull(FADMSTATUS,'') as FADMSTATUS,
ifnull(FCOLLTYPE,'') as FCOLLTYPE,
ifnull(ffaculty,'') as ffaculty,
ifnull(fbank,'') as fbank,
ifnull(fbankbranch,'') as fbankbranch,
ifnull(fbankaccno,'') as fbankaccno,
ifnull(fifsccode,'') as fifsccode,
ifnull(fchequefavour,'') as fchequefavour,
ifnull(fbranchcode,'') as fbranchcode,
ifnull(fbankplace,'') as fbankplace,
ifnull(fmobile,'') as fmobile,
ifnull(faltmobile,'') as faltmobile
from college where fcollcode='{$fcollcode}'";
$data=$aobj_context->pobj_db->GetRow($query);
// var_dump($query);
if($data)
{
$returnObj = "";
$returnObj->error_code=0;
$returnObj->status="success";
$returnObj->data= $data;
echo json_encode($returnObj);
}
else
{
$returnObj = "";
$returnObj->error_code=-1;
$returnObj->status="No data found";
$returnObj->data= $data;
echo json_encode($returnObj);
}
}
?>
|