<!DOCTYPE html>

<html>

<head>
	<title>
		Hope Technology and Supply Ltd
	</title>
	
<style type="text/css">
body {
	width:1500px;
	border:red 0px solid;
	border-style:dashed;
	margin:auto;
	padding:10px;
}
td {
	text-align:center;
	padding:10px;
}
table {
	margin:auto;
	border:blue 1px solid;
}
label {
	font-size:18px;
	color:blue;
    font-weight: bold;
    font-family: cursive;
}
h2 {
	color:red;
	text-align:center;
}
th {
	color:red;
	font-size:20px;
    font-family: cursive;
}
</style>

</head>

<body>

<table border="1" cellspacing="5" cellpadding="5" width="100%">
	<thead>
		<tr>
		
			<th>ID</th>
			<th>NAMES</th>
			<th>EMAIL</th>
			<th>PHONE</th>
			<th>MESSAGE</th>
		</tr>
	</thead>
	<tbody>
	<?php
		require_once('connection.php');
		$result = $conn->prepare("SELECT * FROM tbl_contact ORDER BY tbl_contact_id ASC");
		$result->execute();
		for($i=0; $row = $result->fetch(); $i++){
	?>
		<tr>
			<td><label><?php echo $row['tbl_contact_id']; ?></label></td>
			<td><label><?php echo $row['full_name']; ?></label></td>
			<td><label><?php echo $row['email']; ?></label></td>
			<td><label><?php echo $row['Phone']; ?></label></td>
			<td><label><?php echo $row['message']; ?></label></td>
			
		</tr>
		<?php } ?>
	</tbody>
</table>
 <center><h2><a href="../dashboard.php">CLOSE</a></h2></center>
</body>

</html>