-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage.php
More file actions
36 lines (31 loc) · 703 Bytes
/
Copy pathpage.php
File metadata and controls
36 lines (31 loc) · 703 Bytes
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
<?php include 'inc/header.php';?>
<?php
if(!isset($_GET['pageid']) || $_GET['pageid'] == NULL){
header("Location:404.php");
}
else{
$id = $_GET['pageid'];
}
?>
<?php
$query = "select * from page where id='$id'";
$addpage = $db->select($query);
if($addpage){
while($result = $addpage->fetch_assoc()){
?>
<div class="contentsection contemplete clear">
<div class="maincontent clear">
<div class="about">
<h2><?php echo $result['name']; ?></h2>
<p><?php echo $result['body']; ?></p>
</div>
</div>
<?php
}
}
else{
header("Location:404.php");
}
?>
<?php include "inc/sidebar.php";?>
<?php include "inc/footer.php";?>