-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheventpage.php
85 lines (68 loc) · 2.88 KB
/
eventpage.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Event</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Blinker:wght@300&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Bruno+Ace+SC&family=Chakra+Petch:wght@300&display=swap"
rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Bree+Serif&display=swap" rel="stylesheet">
<link rel="stylesheet" href="events.css">
<link rel="stylesheet" href="footer_styling.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css"
integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
<body>
<?php
require_once('header.php');
?>
<br><br>
<section class="comppage">
<?php
//making connection with the database
$servername = "localhost";
$username = "root";
$password = "";
$database = "events";
$conn = mysqli_connect($servername, $username, $password, $database);
if ($conn) {
// reading entries from blogs database
$sql = "SELECT * FROM `events`";
$result = mysqli_query($conn, $sql);
//Initializing the count
$i = 0;
//counting total blogs
if ($result) {
while(($row = mysqli_fetch_assoc($result))['s.no.'] != $_GET['sno']) {}
echo '
<br><br>
<span class="eventhead"><hr>'.$row['event_name'].'
<hr></span>
<br>
<span class="eventsubheading">'.$row['date_and_venue'].'
</span>
<br><br>
<div class="contentcontainer">
'.$row['content'].'
</div>
<br><br>
';
}
}
else {
die("connection with events database was unsuccessful : ".mysqli_connect_error());
}
?>
</section>
<?php
require_once('footer.php');
?>
</body>
</html>