-
Notifications
You must be signed in to change notification settings - Fork 0
/
viewdoneOrder.php
40 lines (36 loc) · 954 Bytes
/
viewdoneOrder.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
<?php
require 'customer.php';
?>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<div >
<table border="1">
<tr>
<th>id</th>
<th>Food</th>
<th>Quantity</th>
<th>Transaction</th>
</tr>
<?php
$user = $_SESSION['vemail'];
$sql = mysqli_query($conn,"SELECT * FROM seeorders WHERE order_by='$user'");
if (mysqli_num_rows($sql)) {
while ($row=mysqli_fetch_assoc($sql)) {
echo "<tr>";
echo "<td>".$row['id']."</td>";
echo "<td>".$row["food"]."</td>";
echo "<td>".$row["quantity"]."</td>";
echo "<td>".$row["totalprice"]."</td>";
echo "</tr>";
}
}
?>
</table>
</div>
</body>
</html>