-
Notifications
You must be signed in to change notification settings - Fork 1
/
about.php
34 lines (28 loc) · 878 Bytes
/
about.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
<?php require_once('header.php'); ?>
<?php
$statement = $pdo->prepare("SELECT * FROM tbl_page WHERE id=1");
$statement->execute();
$result = $statement->fetchAll(PDO::FETCH_ASSOC);
foreach ($result as $row) {
$about_title = $row['about_title'];
$about_content = $row['about_content'];
$about_banner = $row['about_banner'];
}
?>
<div class="page-banner" style="background-image: url(assets/uploads/<?php echo $about_banner; ?>);">
<div class="inner">
<h1><?php echo $about_title; ?></h1>
</div>
</div>
<div class="page">
<div class="container">
<div class="row">
<div class="col-md-12">
<p>
<?php echo $about_content; ?>
</p>
</div>
</div>
</div>
</div>
<?php require_once('footer.php'); ?>