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.139.69.138
<?php
include ("database.php");
$fromdeg = $_POST['fromdeg'];
$todeg = $_POST['todeg'];
$fromapp = $_POST['fromapp'];
$toapp = $_POST['toapp'];
$year = $_POST['year'];
$get_app_query = "select fappno, fappno, fname, ffatname,
concat(sa.fdegree,'-',dg.fdescpn) as degree,
sa.ftotfee, sa.fpaymenttype, ifnull(fapprstatus,'') as fapprstatus,
ifnull(sa.fapprusername,'') as fuser
from studadm sa
inner join degree dg
on sa.fdegree = dg.fdegree
and sa.fexamno = dg.fexamno
where sa.fdegree between '{$fromdeg}' and '{$todeg}'
and sa.fappno between '{$fromapp}' and '{$toapp}'
and sa.fexamno = '{$year}'";
$result = mysqli_query($conn,$get_app_query);
$i=0;
while($app = mysqli_fetch_array($result,MYSQLI_NUM))
{
$apps[$i] = $app;
$i++;
}
$row['apps'] = $apps;
$row['status'] = 'success';
echo json_encode($row);
|