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.219.158.84
Current Path : /var/www/oasis/src/ |
| Current File : /var/www/oasis/src/qpSummaryReport.php |
<?php
function getQPSummary($aobj_context){
$aobj_context->mobj_db->SetFetchMode(ADODB_FETCH_ASSOC);
$date = $aobj_context->mobj_data['date'];
$collcode = $_SESSION['collcode'];
$Date = date_format(date_create_from_format('d/m/Y', $date), 'Y-m-d');
$query="SELECT cd.fqpcode1, s.fcsubcode, s.fsubname, r.freasoncd, r.fdescpn,count(*) as cnt
FROM candsum c
INNER JOIN canddet cd ON c.fregno = cd.fregno AND c.fcollcode = cd.fcollcode
INNER JOIN subject s ON cd.fdegree = s.fdegree AND cd.fsubcode = s.fsubcode
AND cd.fexamno = s.fexamno
INNER JOIN reason r ON s.fsession = r.freasoncd
WHERE c.fcntrcode = '1001' AND s.fdoe = '2022-12-23'
and cd.fpresent = 'P'
and ifnull(s.fqpcode,'') <> ''
GROUP BY s.fqpcode";
$excute = $aobj_context->mobj_db->GetAll($query);
if($excute!= 0)
echo $aobj_context->mobj_output->ToJSONEnvelope($excute,0,"success");
else
echo $aobj_context->mobj_output->ToJSONEnvelope($excute,-1,"Failure");
return;
}
?>
|