-
Notifications
You must be signed in to change notification settings - Fork 0
/
contacted.php
80 lines (75 loc) · 2.49 KB
/
contacted.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
<?php if(!isset($_SESSION)){
session_start();
}
require_once("config.php");
$query="select * from contact";
$result= mysqli_query($conn, $query) or die(mysqli_error($conn));
?>
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<title>Vidhi Chambers</title>
</head>
<body class="bg-dark">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark" id="mainNav" class="collapse">
<div class="container-fluid">
<a class="navbar-brand" href="#">Admin Panel</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<!----NAVIGATION-->
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link " aria-current="page" href="adminpanel.php">Appointment Details<span class="sr-only">
</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="message.php">Messages</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="contacted.php">Reached Out</a>
</li>
<li class="nav-item">
<a class="nav-link" href="logout.php">Logout</a>
</li>
</ul>
</div>
</div>
</nav>
<div class="container">
<div class="row">
<div class="col mt-5">
<div class="card mt-5">
<table class="table table-bordered">
<tr>
<td>Name</td>
<td>Email</td>
<td>Message</td>
</tr>
<?php
while ($row = mysqli_fetch_assoc($result) or die("<p color=\"#f00\">People who reached out to us</p>")) {
$name=$row['name'];
$email=$row['email'];
$message=$row['message'];
?>
<tr>
<td><?php echo $name ?></td>
<td><?php echo $email ?></td>
<td><?php echo $message?></td>
</tr>
<?php
}
?>
</table>
</div>
</div>
</div>
</div>
<footer>
<p class="text-center">©<?php echo date('Y') ?>-All Rights Reserved By Admin</p>
</footer>
</body>
</html>