-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUsers.php
More file actions
65 lines (58 loc) · 1.47 KB
/
Users.php
File metadata and controls
65 lines (58 loc) · 1.47 KB
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
<?php
SESSION_START();
include'Adminheader.php';
$price=1000;
include 'connection.php';
$sql = "SELECT * FROM registeruser";
$result = $conn -> query ($sql);
?>
<!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>Document</title>
<link rel="stylesheet" href="css/pending_orders.css">
</head>
<body>
<div class="container pendingbody">
<h5>All Orders</h5>
<table class="table">
<thead>
<tr>
<th scope="col">First Name</th>
<th scope="col">Last Name</th>
<th scope="col">Email</th>
<th scope="col">Contact Number</th>
<th scope="col">Address</th>
<th scope="col">Username</th>
<th scope="col">Password</th>
</tr>
</thead>
<tbody>
<?php
if (mysqli_num_rows($result) > 0) {
// output data of each row
while($row = mysqli_fetch_assoc($result)) {
?>
<tr>
<td><?php echo $row["FirstName"] ?></td>
<td><?php echo $row["LastName"] ?></td>
<td><?php echo $row["Email"] ?></td>
<td><?php echo $row["ContactNumber"] ?></td>
<!-- --><td><?php echo "tobeset" ?></td>
<td><?php echo $row["Username"] ?></td>
<td><?php echo $row["Password"] ?></td>
</tr>
<?php
}
}
else
echo "0 results";
?>
</tbody>
</table>
</div>
</body>
</html>