-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog.php
39 lines (32 loc) · 607 Bytes
/
blog.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
<?php include('config.php'); ?>
<!DOCTYPE html>
<html>
<!-- Header -->
<head>
<?php include('header.php'); ?>
</head>
<!-- Header Close -->
<body class="text-center gradbackground white-text">
<?php include('navbar.php'); ?>
<div class="container">
<div class="row">
<div class="col-md-12">
<h3>Blog</h3>
<hr />
</div>
<div class="col-md-12">
<?php
$sql = "SELECT * FROM `blog` ;";
$result = mysqli_query($con,$sql);
if($result->num_rows > 0){
while($row = mysqli_fetch_array($result)){
echo($row['message'].'<br /><hr />');
}
}
?>
</div>
</div>
</div>
<?php include('footer.php'); ?>
</body>
</html>