-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmessageInterface.php
89 lines (40 loc) · 1.26 KB
/
messageInterface.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
include "config.php";
@$email=$_GET['email'];
?>
<head>
<link rel="stylesheet" type="text/css" href="index_files/login.css">
</head>
<body>
<div class="container">
<table class="table table-hover table-responsive" >
<thead class="thead-inverse">
<tr>
<th>Status</th>
<th>Name</th>
<th>Email</th>
<th>Message</th>
<th>Link</th>
</tr>
</thead>
<tbody>
<?php
$sql="SELECT * FROM message WHERE receiver='$email'";
$result=$conn->query($sql);
if ($result->num_rows>0) {
while($row = $result->fetch_assoc()) {
if($row["status"]==0) {
echo "<tr>
<th><a href=messageCheck.php?id=".$row["id"]."&email=".$email." class='btn btn-secondary'>Check</a></th>";
}
echo "
<th>".$row["name"]."</th>
<th>".$row["email"]."</th>
<th>".$row["message"]."</th>
<th><a href='".$row["link"]."'>Link</a></th>
</tr>";
}
}
$conn->close();
?>
</div> <!-- /container -->