-
Notifications
You must be signed in to change notification settings - Fork 0
/
order.php
58 lines (45 loc) · 1.1 KB
/
order.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
<?php
require 'dbconfig/config.php';
?>
<html>
<head>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/homepage.css" rel="stylesheet">
</head>
<body>
<table class ="table table-striped table-hover">
<tr>
<th>Order Number</th>
<th>Date</th>
<th>Total</th>
<th>Buyer</th>
<th>Status</th>
<th></th>
</tr>
<!--</table>-->
<?php
$sql="SELECT * FROM orderr WHERE seller_username = 'KamalPerera' ORDER BY ord_Date DESC";
$res=mysqli_query($con,$sql)
or die(mysqli_error($con));
;
if ($res){
while($row=mysqli_fetch_row($res)){
echo "<div class='tbl'>";
//echo "<table border=0>
echo "<tr>
<td>$row[0]</td>
<td>$row[2]</a></td>
<td>$row[1]</td>
<td>$row[5]</td>
<td>$row[8]</td>
<td><a class= 'btn btn-primary' href='orderViewDetailsScreen.php?ordNo=$row[0]'>View Details</a></td>
</tr>";
echo "</div>";
}
echo"</table>";
}else{
echo "error".mysql_error();
}
?>
</body>
</html>