-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathselectevent.php
More file actions
executable file
·71 lines (51 loc) · 1.92 KB
/
Copy pathselectevent.php
File metadata and controls
executable file
·71 lines (51 loc) · 1.92 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
66
67
68
69
70
71
<?php
session_start();
include ("lib/connection.php");
if (empty($_SESSION['memberId']))
{
header("Location: index.php");
exit();
}
$mem = $_SESSION['memberId'];
$mem = mysqli_real_escape_string($mysqli, $mem);
$sql = "SELECT * FROM event WHERE memberId = '$mem' ";
$res = $mysqli->query($sql);
if (!$res)
{
echo $mysqli->error;
}
//$option = $res->fetch_array();
?>
<!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">
<script src="home.js"></script>
<header></header>
<div style="width: 430px; margin: auto;">
<h2>Select the event to be modified</h2>
<form style="width: 400px; position: static;" method = "POST" action="modifyevent.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="Modify">
</form>
</div>
<div class="push"></div></div>
<div class="footer">
<p style="margin-top: 7px;"></p>
</div>
</body>
</html>