-
Notifications
You must be signed in to change notification settings - Fork 1
/
viewadmin_message.php
executable file
·32 lines (31 loc) · 1.2 KB
/
viewadmin_message.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
session_start();
include 'db.php';
include 'agentheader.php';
?>
<html>
<head>
<link href="style.css" rel="stylesheet">
</head>
<body>
<div id="ahead">
Message From Admin
</div>
<div id="atable">
<?php
$result = mysqli_query($conn, "SELECT * FROM admin_request where agid=".$_SESSION['user']);
while($row = mysqli_fetch_array($result)) {
?>
Donor Name : <?=$row['name']?><br>
Donor Email : <?=$row['email']?><br>
Donor Phone : <?=$row['phone']?><br>
Donor Address : <?=$row['address']?><br>
Food Quantity : <?=$row['food']?><br>
Admin Message : <?=$row['message']?><br>
status : <a href="status.php?mid=<?=$row['uid']?>"><?=$row['status']?></a><br></div>
<div id="atablelink"><a href="sendmessage_toadmin.php?mid=<?=$row['uid']?>">Send Message</a><br></div>
<?php
}
?>
</body>
</html>