-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathselectview.php
More file actions
65 lines (49 loc) · 1.75 KB
/
Copy pathselectview.php
File metadata and controls
65 lines (49 loc) · 1.75 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
62
63
64
65
<?php
session_start();
include ("lib/connection.php");
if (empty($_SESSION['memberId']))
{
header("Location: index.php");
exit();
}
$mem = $_SESSION['memberId'];
$sql = "SELECT * FROM event WHERE memberId = '$mem' ORDER BY 'eventId' DESC ";
$res = $mysqli->query($sql);
if (!$res)
{
echo $mysqli->error;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Events Portal</title>
<link rel="stylesheet" type="text/css" href="eventaddmodStyle.css">
</head>
<body>
<div class="wrapper">
<header></header>
<script src="home.js"></script>
<div style="width: 430px; margin: auto;">
<h2>Select Event</h2>
<form style="width: 400px; position: static;" method = "POST" action="view.php">
<?php
while($data = $res->fetch_array())
{
$title = $data['title'];
$id = $data['eventId'];
?>
<div class="radioDiv"><input type="radio" name="event" value="<?php echo $id; ?>" id="list1" class="radios"><label class="radioLabel"><?php echo $title; ?></label><br></div>
<?php
}
?>
<input type="submit" id="subBtn" style="margin: 10px auto 10px 100px; " value="View">
</form>
</div>
<div class="push"></div></div>
<div class="footer">
<p style="margin-top: 7px;"></p>
</div>
</body>
</html>