-
Notifications
You must be signed in to change notification settings - Fork 1
/
c_fetch.php
84 lines (74 loc) · 2.58 KB
/
c_fetch.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
83
84
<!DOCTYPE html>
<html>
<head>
<title>
</title>
<?php include 'style.css';?>
</head>
<body>
<div class="center-div">
<div class="table-responsive">
<table>
<thead>
<tr>
<th>courier_id</th>
<th>price</th>
<th>customer_name</th>
<th>reciever_name</th>
<th>customer_address</th>
<th>reciever_address</th>
<th>customer_phone</th>
<th>reciever_phone</th>
<th>customer_email</th>
<th>reciever_email</th>
<th>pickup_date</th>
<th>delivery_date</th>
<th>f_pincode</th>
<th>t_pincode</th>
<th>delivery_service</th>
<th>quantity</th>
<th>weight</th>
<th>height</th>
<th>length</th>
<th>courier_time</th>
</tr>
</thead>
<tbody>
<?php
include 'connection.php';
$selectquery = "SELECT c.courier_id,q.price,cu.cu_name,r.r_name,cu.cu_address,r.r_address,cu.cu_phone_no,r.r_phone_no,cu.cu_email_id,r.r_email_id,cu.pickup_date,r.delivery_date,q.f_pincode,q.t_pincode,q.delivery_service,q.quantity,q.weigh,c.height,c.length,c.courier_time
FROM courier as c, customer as cu, quote as q, reciever as r
WHERE c.courier_id = cu.courier_id AND c.courier_id = r.courier_id AND q.quote_id = c.quote_id AND q.quote_id = cu.quote_id
ORDER BY courier_id ASC";
$query = mysqli_query ($con,$selectquery);
while ($res = mysqli_fetch_assoc($query)){
?>
<tr>
<td><?php echo $res['courier_id'];?></td>
<td><?php echo $res['price'];?></td>
<td><?php echo $res['cu_name'];?></td>
<td><?php echo $res['r_name'];?></td>
<td><?php echo $res['cu_address'];?></td>
<td><?php echo $res['r_address'];?></td>
<td><?php echo $res['cu_phone_no'];?></td>
<td><?php echo $res['r_phone_no'];?></td>
<td><?php echo $res['cu_email_id'];?></td>
<td><?php echo $res['r_email_id'];?></td>
<td><?php echo $res['pickup_date'];?></td>
<td><?php echo $res['delivery_date'];?></td>
<td><?php echo $res['f_pincode'];?></td>
<td><?php echo $res['t_pincode'];?></td>
<td><?php echo $res['delivery_service'];?></td>
<td><?php echo $res['quantity'];?></td>
<td><?php echo $res['weigh'];?></td>
<td><?php echo $res['height'];?></td>
<td><?php echo $res['length'];?></td>
<td><?php echo $res['courier_time'];?></td>
</tr>
<?php
}
?>
</tbody>
</table>
</div>
</div>