-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathf-studentdata.php
74 lines (55 loc) · 2.36 KB
/
f-studentdata.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
68
69
70
71
72
73
74
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>student data</title>
<link rel="stylesheet" href="css/studentdata1.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</head>
<?php include("faculty-dashboard.php"); ?>
<body>
<br><br>
<div class="container">
<div class="col-lg-12">
<center> <h1>STUDENT-DATA</h1></center>
<form method="post" action="export.php">
<input type="submit" name="export" value="CSV Export"/>
</form>
<table class="table table-bordered">
<tr>
<th>ID</th>
<th>FIRSTNAME</th>
<th>LASTNAME</th>
<th>EMAIL</th>
<th>GENDER</th>
<th>COURSE</th>
<th>YEAR/SEM</th>
</tr>
<?php
$conn=mysqli_connect("localhost","root","");
mysqli_select_db($conn,"sas");
$sql="select * from student ";
$query=mysqli_query($conn,$sql);
while($result=mysqli_fetch_assoc($query))
{
?>
<tr>
<td><?php echo $result['id']; ?></td>
<td><?php echo $result['first_name']; ?></td>
<td><?php echo $result['last_name']; ?></td>
<td><?php echo $result['email']; ?></td>
<td><?php echo $result['gender']; ?></td>
<td><?php echo $result['course']; ?></td>
<td><?php echo $result['year_sem']; ?></td>
</tr>
<?php }
?>
</table>
</div>
</div>
</body>
</html>