0xV3NOMx
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.148.104.103


Current Path : /var/www/html/studentportal_wait/src/
Upload File :
Current File : /var/www/html/studentportal_wait/src/notification.php

<?php

include("database.php");

include("commandb.php");


$UNIVCODE  = $_SESSION['UNIVCODE'];

$screen = $_POST['screen'];

$query = "select distinct  p.*,'{$_SESSION['FOLDER']}' as folder from postnotfn p
inner join degree d on p.fdeggrp = d.fdeggrp
where d.fdegree = '{$_SESSION['DEGREE']}' and p.ftype = 's'";
//var_dump($query);
$result = mysqli_query($conn,$query);

$count = @mysqli_num_rows($result);

if($count > 0)
{
	$i = 0;
	$notification = array();
	while($row = mysqli_fetch_assoc($result))
	{
		$notification[$i] = $row;
		$i++;

	}
	
	$app['error_code'] = 1;
	$app['data'] = $notification;
	//$app['path'] = $ffilepath;
    
    // $res['data'] = $app;
    // $res['error_code'] = 1;
	mysqli_close($conn);
	mysqli_close($conndb);
	echo json_encode($app);
	
}else
{
	$app['data'] = "Notification Not Available";
	$app['error_code'] = 0;
	mysqli_close($conn);
	mysqli_close($conndb);
	echo json_encode($app);
}

?>