-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin_dashboard.php
More file actions
70 lines (58 loc) · 2.17 KB
/
admin_dashboard.php
File metadata and controls
70 lines (58 loc) · 2.17 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
<?php
session_start();
$query = "SELECT * FROM lists";
$search_result = Table($query);
// function to connect and execute the query
function Table($query)
{
$connect = mysqli_connect("localhost", "root", "aditya@1234", "event_registration_participant");
$filter_Result = mysqli_query($connect, $query);
return $filter_Result;
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Participants List</title>
<link rel="stylesheet" type="text/css" href="style3.css">
<link rel="stylesheet" type="text/css"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<h1>Welcome <?php echo strtoupper($_SESSION['user'])?><h1>
<h2>The participants that are attending the event are,</h2>
<style>
table,tr,th,td
{
border: 1px solid red;
}
</style>
</head>
<body>
<table>
<tr>
<th>Serial Number</th>
<th>username</th>
<th>email-id</th>
</tr>
<!-- filling up the table by taking values from the database -->
<?php while($row = mysqli_fetch_array($search_result)):?>
<tr>
<td><?php echo $row['indexnumber'];?></td>
<td><?php echo $row['username'];?></td>
<td><?php echo $row['email'];?></td>
</tr>
<?php endwhile;?>
</table>
</form>
<form action="Admin_Registration_and_Login_page.php" method="post">
<button type="submit" class="btn btn-success"> Logout </button>
</form>
</form>
<form action="http://localhost/phpmyadmin/sql.php?db=event_registration_participant&table=lists&pos=0" method="post">
<button type="submit" class="btn btn-primary"> ADD or REMOVE participants </button><br>
</form>
</form>
<form action="LandingPage.html" method="post">
<button type="submit" class="btn btn-success"> HOMEPAGE </button>
</form>
</body>
</html>