-
Notifications
You must be signed in to change notification settings - Fork 0
/
orderLocation.php
43 lines (37 loc) · 1.02 KB
/
orderLocation.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
<?php
require 'customer.php';
$sqlp="";
?>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="customer.css">
<title></title>
</head>
<body>
<table class="center" border="1">
<tr>
<th>SL</th>
<th>Order ID</th>
<th>Delivery Email</th>
<th>Current location of this order</th>
<th>Time</th>
</tr>
<?php
$sql= mysqli_query($conn,"SELECT * FROM tracker WHERE order_by='$user_logged_in'");
$count=mysqli_num_rows($sql);
if ($count>0) {
while ($a = mysqli_fetch_assoc($sql)) {
echo "<td>".$a['id']."</td>";
echo "<td>".$a['orderid']."</td>";
echo "<td>".$a['deliEmail']."</td>";
echo "<td>".$a['deli_city'].",".$a['deli_region'].",".$a['deli_country']."</td>";
echo "<td>".$a['present_at']."</td>";
echo "</tr>";
}
}
?>
</table>
</body>
</html>