-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdataTable.php
More file actions
53 lines (53 loc) · 1.71 KB
/
dataTable.php
File metadata and controls
53 lines (53 loc) · 1.71 KB
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
<!DOCTYPE html>
<html>
<head>
<title>MDRH | Comment Section</title>
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
</head>
<body>
<div class="menu-wrapper">
<a href="index.php">Home</a>
<a href="profile.php">Profile</a>
<a href="gallery.php">Gallery</a>
<a href="guest.php"><b>Guest Book</b></a>
<a href="contact.php">Contact</a>
</div>
<div class="main-wrapper">
<div class="profile-wrapper" id="profile">
<h2>Muhammad Daffa Rizmawan Harahap</h2>
</div>
<div class="right-wrapper" id="about">
<div class="table-wrapper">
<h2 class="table-header">Comments</h2>
<table>
<tr>
<td>No</td>
<td>Name</td>
<td>Email</td>
<td>Comment</td>
</tr>
<?php
include'connector.php';
$no=1;
$data=mysqli_query($connector,"select * from tbl_data");
while($d=mysqli_fetch_array($data)){
?>
<tr>
<td><?php echo $no++;?></td>
<td><?php echo $d['name'];?></td>
<td><?php echo $d['email'];?></td>
<td><?php echo $d['comment'];?></td>
</tr>
<?php
}
?>
</table>
</div>
</div>
</div>
<footer>
<p> Copyright © MDRH</p>
</footer>
</body>
</html>