-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcheckout.php
More file actions
46 lines (33 loc) · 1.01 KB
/
Copy pathcheckout.php
File metadata and controls
46 lines (33 loc) · 1.01 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
<?php
require_once "db.php";
session_unset();
$result = $mysqli->query('SELECT * FROM '. DB .".users WHERE logged_in=b'1'");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Check Out</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="form">
<h1>Current Users</h1>
<form action="checkout_php.php" method="post">
<?php
if ($result->num_rows > 0) {
while($row = $result->fetch_assoc()) {
$output = '<input class = "button button-block" type="submit" value="'. $row['first_name'] . ' ' . $row['last_name'] . '" name="' . $row['id']. '">';
echo $output;
}
}
?>
</form>
<br>
<hr>
<br>
<a href="index.html"><button class="button button-block">Back</button></a>
</div>
</body>
</html>