-
Notifications
You must be signed in to change notification settings - Fork 0
/
faqadminiview.php
89 lines (66 loc) · 1.69 KB
/
faqadminiview.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
88
89
<!DOCTYPE html>
<html>
<head>
<title>Reminder Website - FAQ</title>
<link rel="stylesheet" type="text/css" href="faqadminview.css"/>
</head>
<body>
<header>
<div class="">
<div id="">
<h1>RemindMe!</h1>
</div>
</div>
</header>
<nav>
<ul >
<li class="current"><a href="home.html">Home</a></li>
<li><a href="calender.html" >Calendar</a></li>
<li><a href="todo.html">To-Do</a></li>
<li><a href="contact.html">Contact Us</a></li>
<li><a href="faq.html">FAQ</a></li>
</ul>
</nav>
<div class="table">
<h1>FAQ Admin View</h1>
<table border ="1">
<tr>
<th>Id</th>
<th>Name</th>
<th>Email</th>
<th>Question</th>
<th>Action</th>
</tr>
<?php
require'config.php';
$sql = "SELECT * From faqadminview";
$result = $conn->query($sql);
if($result->num_rows > 0)
{
while($row = $result->fetch_assoc())
{
echo"
<tr>
<td>$row[id]</td>
<td>$row[name]</td>
<td>$row[email]</td>
<td>$row[question]</td>
<td>
<a href='deleteadmin.php?id=row[id]' class='btn'> Delete </a></td>
</tr>
";
}
}
else
{
echo "No Results";
}
?>
</table>
</div>
<br><br><br><br><br><br>
<footer>
<p>RemindMe! , Copyright © 2023</p>
</footer>
</body>
</html>