-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdelete-event.php
More file actions
46 lines (32 loc) · 884 Bytes
/
delete-event.php
File metadata and controls
46 lines (32 loc) · 884 Bytes
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
<?php
include_once("header.php");
include_once("navigation.php");
include_once("adminsidebar.php");
include_once("connection.php");
echo '<div id="page-content-wrapper">';
$sql = "SELECT * from addevent ORDER BY EDATE";
$result = mysqli_query($conn,$sql);
echo '
<center>
<h1 class="alert alert-info">Delete Added Events</h1>
<table class="table table-striped table-hover table-bordered table-condensed" style="width: 80%">
<tr>
<th>NAME</th>
<th>DATE</th>
<th>DETAILS</th>
<th>DELETE</th>
</tr>
';
while ($row = mysqli_fetch_array($result)) {
echo '
<tr>
<td>'.$row['ENAME'].'</td>
<td>'.$row['EDATE'].'</td>
<td>'.$row['DETAILS'].'</td>
<td><a href="ajax.php?deleteEvent='.$row['ID'].'" class="btn btn-danger btn-block btn-sm">Delete</a></td>
';
}
echo '
</table></center>';
include_once('footeradmin.php');
?>