-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEvents.php
87 lines (65 loc) · 2.54 KB
/
Events.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
ob_start();
session_start();
include"includes/db_conn.php";
include"includes/header.php";
?>
<body>
<header id="home">
<?php
include"includes/navmenu.php";
?>
</header>
<br>
<style type="text/css">
.bg {
/* The image used */
background-image: url("event3.png");
/* Full height */
height: 50%;
/* Center and scale the image nicely */
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
</style>
<body class="bg" >
<?php
$query = "SELECT * FROM events";
$events_fetched_res = mysqli_query( $connection , $query );
while($data_fetched_posts = mysqli_fetch_assoc($events_fetched_res))
{
$event_id = $data_fetched_posts['event_id'];
$event_title = $data_fetched_posts['event_title'];
$event_organizer = $data_fetched_posts['event_organizer'];
$event_description = $data_fetched_posts['event_description'];
$event_date = $data_fetched_posts['event_date'];
$event_time = $data_fetched_posts['event_time'];
$event_image = $data_fetched_posts['event_image'];
echo '<tr>';
?>
<table class="table table-responsive">
<tbody>
<center>
<div >
<h1><a><span class="flaticon-camera"></span> <u><?php echo "$event_title";?></u></h1><p><h4> <?php echo"Date:$event_date";?> <?php echo"Time:$event_time";?></h4></p></a>
</div>
<h3> <a><u>Organizer:</u><?php echo "$event_organizer";?></a></h3>
<?php echo"<img alt='img missing' width=700 src='adminpanel/images/Events/{$event_image}'/>"?>
<br>
<br>
<h3><a> <u>Details:</u><?php echo "$event_description";?></a></h3>
</center>
</tbody>
</table>
<?php
}
?>
</tbody>
</table>
</body>
<br>
<?php
include"includes/footer.php";
include"includes/modals.php";
?>