forked from NITR-Utsav/main
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ca_admin.php
68 lines (51 loc) · 1.81 KB
/
ca_admin.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Campus Ambassadors</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/mdb.min.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<style>
.table{
color: white;
}
</style>
</head>
<body>
<table class="table">
<thead>
<tr style="background-color: #00acc1;">
<th><a class="blue-text"><i class="fa fa-arrows"></i></a></th>
<th>Name</th>
<th>E-mail</th>
<th>Contact</th>
<th>Institute</th>
<th>FB Link</th>
</tr>
</thead>
<tbody style="background-color: #26c6da;">
<?php
$conn=new mysqli("localhost","root","","nitrutsav");
$sql="SELECT sno,name,email,contact,college,link FROM ca";
$result=$conn->query($sql);
if($result->num_rows>0)
{
while($row=$result->fetch_assoc())
{
echo "<tr><td>".$row["sno"]."</td><td>".$row["name"]."</td><td>".$row["email"]."</td><td>".$row["contact"]."</td><td>".$row["college"]."</td><td>".$row["link"]."</td></tr>";
}
}
?>
</tbody>
</table>
<h3><strong>Total Count: <?php echo $result->num_rows; ?></strong></h3>
<script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="js/popper.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/mdb.min.js"></script>
</body>
</html>