-
Notifications
You must be signed in to change notification settings - Fork 0
/
cdisplay.php
82 lines (55 loc) · 1.7 KB
/
cdisplay.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php
include 'connect.php';?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div class="container">
<button class="my-5"><a href="corder.php" class="text-light"> create confirm order</a></button>
<table class="table">
<thead>
<tr>
<th scope="col">Order_ID</th>
<th scope="col">Customer_ID</th>
<th scope="col">Customer_Name</th>
<th scope="col">Address</th>
<th scope="col">Phone_Number</th>
<th scope="col">Medicine</th>
<th scope="col">Operation</th>
</tr>
</thead>
<tbody>
<?php
$sql="Select * from `confirmorder`";
$result=mysqli_query($con,$sql);
if($result){
while($row=mysqli_fetch_assoc($result)){
$Order_ID=$row['Order_ID'];
$Customer_ID=$row['Customer_ID'];
$Customer_Name=$row['Customer_Name'];
$Address=$row['Address'];
$Phone_Number=$row['Phone_Number'];
$Medicine=$row['Medicine'];
echo'<tr>
<td scope="row">'.$Order_ID.'</td>
<td>'.$Customer_ID.'</td>
<td>'.$Customer_Name.'</td>
<td>'.$Address.'</td>
<td>'.$Phone_Number.'</td>
<td>'.$Medicine.'</td>
<td>
<button class="btn btn-danger"><a href="cdelete.php?deleteid='.$Order_ID.'"class="text-light">delete</a></button>
</td>
</tr>';
}
}
?>
</tbody>
</table>
</div>
</body>
</html>