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.149.238.67
<?php
include 'database.php';
$id = $_POST['id'];
$reg_no = $_SESSION[REGNO];
$folder = $_SESSION[FOLDER];
$sql = "SELECT re.fexamno,dg.fexamname FROM res_fee re
inner join degree dg on re.fdegree = dg.fdegree and re.fexamno = dg.fexamno
where re.fregno = '{$reg_no}'";
//var_dump($sql);
$result = mysqli_query($conn,$sql);
while ($row1 = $result->fetch_assoc()) {
$array[] = $row1;
}
//var_dump(count($array));
if($array > 0)
{
$row['sem'] = $array;
$row['fregno'] = $reg_no;
$row['folder'] = $folder;
echo json_encode($row);
}
else
{
$data = array("status"=>"failure");
echo json_encode($data);
}
?>
|