forked from Vedant12-5/TE-IT-Project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutput.php
More file actions
87 lines (64 loc) · 1.91 KB
/
Copy pathoutput.php
File metadata and controls
87 lines (64 loc) · 1.91 KB
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
85
86
87
<?php include "dbout.php"; ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Booking</title>
<link rel="stylesheet" href="ouput.css">
</head>
<body>
<div class="container">
<div class="logo">
<img class="img" src="cargo.png" alt="">
<div class="text">
<h3>85/7,Prabhat Road,Pune,Maharashtra</h3>
<h5>Tel no.: 0217-2732842</h5>
</div>
</div>
<?php
if(isset($_POST['check'])){
$search_item = $_POST['search'];
$query = "select * from customer where phone_no = '{$search_item}'";
$search_connection = mysqli_query($connection,$query);
while($row = mysqli_fetch_assoc($search_connection)) {
$name = $row['name'];
$from_address = $row['from_address'];
$to_address = $row['to_address'];
$shipping_date = $row['shipping_date'];
$status = $row['status'];
?>
<div class="container1">
<h2>RECEIPT</h2>
<table>
<tr>
<th>Name</th>
<?php echo "<td>{$name}</td>"; ?>
</tr>
<tr>
<th>Starting Address</th>
<?php echo "<td>{$from_address}</td>"; ?>
</tr>
<tr>
<th>Destination Address</th>
<?php echo "<td>{$to_address}</td>"; ?>
</tr>
<tr>
<th>Shipping Date</th>
<?php echo "<td>{$shipping_date}</td>"; ?>
</tr>
<tr>
<th>Status</th>
<?php echo "<td>{$status}</td>"; ?>
</tr>
</table>
</div>
<?php
}
}
?>
<section class="qr">
<img src="qr.jpg" class="qrimg" alt="">
</section>
</div>
</body>