-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStu_details.php
67 lines (61 loc) · 1.68 KB
/
Stu_details.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
<?php
session_start();
include_once 'classes/db1.php';
$result = mysqli_query($conn, "SELECT * FROM events,registered r ,participent p WHERE events.event_id=r.event_id and r.usn = p.usn order by event_title");
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>UITS Event</title>
<title></title>
<?php require 'utils/styles.php'; ?>
<!--css links. file found in utils folder-->
</head>
<body><?php include 'utils/adminHeader.php' ?>
<div class="content">
<div class="container">
<h1>Student details</h1>
<?php
if (mysqli_num_rows($result) > 0) {
?>
<table class="table table-hover">
<tr>
<th>ID</th>
<th>Name</th>
<th>Branch</th>
<th>Sem</th>
<th>Email</th>
<th>Phone</th>
<th>Department</th>
<th>Event</th>
</tr>
<?php
$i = 0;
while ($row = mysqli_fetch_array($result)) {
?>
<tr>
<td><?php echo $row["usn"]; ?></td>
<td><?php echo $row["name"]; ?></td>
<td><?php echo $row["batch"]; ?></td>
<td><?php echo $row["sem"]; ?></td>
<td><?php echo $row["email"]; ?></td>
<td><?php echo $row["phone"]; ?></td>
<td><?php echo $row["dept"]; ?></td>
<td><?php echo $row["event_title"]; ?></td>
</tr>
<?php
$i++;
}
?>
</table>
<?php
} else {
echo "No result found";
}
?>
</div>
</div>
<?php include 'utils/footer.php' ?>;
</body>
</html>