-
Notifications
You must be signed in to change notification settings - Fork 0
/
displaydata.php
43 lines (41 loc) · 1.23 KB
/
displaydata.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Registered Users</title>
</head>
<body>
<table>
<thead>
<tr>
<th>ID</th>
<th>Username</th>
<th>Password</th>
</tr>
</thead>
<tbody>
<?php
include 'connect.php';
$records = mysqli_query($conn, "SELECT * FROM project");
while ($data = mysqli_fetch_array($records)){
?>
<tr>
<td><?php echo $data['user_id'] ?></td>
<td><?php echo $data['username'] ?></td>
<td><?php echo $data['passcode'] ?></td>
</tr>
<?php } ?>
</tbody>
</table>
<?php mysqli_close($conn) ?>
<a href="login.html">Back To Form</a>
<select>
<option value="">Go fuck yourself</option>
<option value="">I fucked your wife</option>
<option value="">Smoke weed</option>
<option value="">Bluecheese</option>
</select>
</body>
</html>