-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcurrent_pages.php
More file actions
61 lines (34 loc) · 1.16 KB
/
current_pages.php
File metadata and controls
61 lines (34 loc) · 1.16 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
54
55
56
57
58
59
60
61
<head>
<link rel="stylesheet" href="projectstyle.css" type="text/css">
<script src = "ckeditor/ckeditor.js"></script>
</head>
<?php
session_start();
include('connection.php');
include('header.php');
//include('navigation.php');
$sql = "select * from pages";
$result = mysqli_query($conn, $sql) or die("Bad Query: $sql");
?>
<div class = "navigation">
<ul id="menu" style = "opacity:0.7; background:#000;">
<li style = "float:left;"><a href="user.php">Home</a></li>
<li style = "float:right;"><a href="new_contact.php">Contact Us</a></li>
<li style = "float:right;"><a href="current_events.php">Events</a></li>
<li style = "float:right;"><a href="current_pages.php">Pages</a></li>
</ul>
</div>
<?php
while($row = mysqli_fetch_assoc($result)) {
?>
<div style = "width:100%; float:left;">
<div style = "width:95%; margin:30px; margin-left: 40px; padding:20px; border:2px solid; height:100%;">
<strong>Name: </strong><?php echo $row['name'];?><br><br>
<strong>Short Description: </strong><?php echo $row['sdesp'];?><br><br>
<strong>Long Description: </strong><?php echo $row['ldesp'];?>
</div>
</div>
<?php
}
include('footer.php');
?>