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.22.42.25
<?php
include ("../database.php");
$appno = $_POST['appno'];
$user = $_SESSION['USERTYPE'];
$query = "SELECT IFNULL(FCOLLCODE,'') AS idCollege, IFNULL(d.fdescpn,'') AS idDegreeName,ifnull(p.fpaymentstatus,'') as fpaystatus,
ifnull(p.FAPPREMARKS,'') as fremarks,
p.*
FROM pgstudadm p inner join degree d on p.fdegree = d.fdegree and d.fexamno = 'A'
WHERE p.fappno = '{$appno}'";
$result = mysqli_query($conn,$query);
//$results['fdegname'].' '.$results['fexamname']
$app = mysqli_fetch_array($result,MYSQLI_ASSOC);
$arr['perdetl'] = $app;
$query = "select fappno, fsubcode, fsubname, fsecmarksa, fmaxmarksa, fsecmarksb, fmaxmarksb, fsecmarksc, fmaxmarksc,
fsecmarksd, fmaxmarksd, fsecmarkse, fmaxmarkse, fsecmarksf, fmaxmarksf, ftotsecmarks, ftotmaxmarks, fsubpercent
from qualsubdet where fappno = '{$appno}'";
$result = mysqli_query($conn,$query);
//$pgmarksarr = mysqli_fetch_array($result,MYSQLI_ASSOC);
$i = 0;
while($deg = mysqli_fetch_array($result,MYSQLI_NUM))
{
$pgmarksarr[$i] = $deg;
$i++;
}
$arr['pgmarks'] = $pgmarksarr;
echo json_encode($arr);
?>
|