-
Notifications
You must be signed in to change notification settings - Fork 0
/
users.php
45 lines (39 loc) · 1.14 KB
/
users.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
<?php
include('connection.php');
?>
<!DOCTYPE html>
<head>
</head>
<body>
<div class="header">
<a href="<?php echo $url_home; ?>"><img src="<?php echo $design; ?>/images/logo.png" alt="Members Area" /></a>
</div>
<div class="content">
This is the list of members:
<table>
<tr>
<th>Id</th>
<th>Username</th>
<th>Email</th>
</tr>
<?php
//We get the IDs, usernames and emails of users
$con=new mysqli("localhost","root","","bahubali_ips");
$query="select * from student_info ";
$result=$con->query($query);
while($row=$result->fetch_assoc())
{
?>
<tr>
<td class="left"><?php echo $row['Computer_Code']; ?></td>
<td class="left"><a href="profile.php?Computer_Code=<?php echo $row['Computer_Code']; ?>"><?php echo htmlentities($row['First_Name'], ENT_QUOTES, 'UTF-8'); ?></a></td>
<td class="left"><?php echo htmlentities($row['Email'], ENT_QUOTES, 'UTF-8'); ?></td>
</tr>
<?php
}
?>
</table>
</div>
<div class="foot"><a href="home.html">Go Home</a> - <a href="http://www.feedflood.com/">Webestools</a></div>
</body>
</html>