-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuynow_a.php
More file actions
77 lines (67 loc) · 1.71 KB
/
buynow_a.php
File metadata and controls
77 lines (67 loc) · 1.71 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
<?php
require_once('connection.php');
$res= mysqli_query($con,"SELECT * FROM buy");
?>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
<style media="screen">
body {
font-size: 19px;
}
table{
width: 50%;
margin: 30px auto;
border-collapse: collapse;
text-align: center;
}
tr {
border-bottom: 2px solid #cbcbcb;
}
th, td{
border: 2px solid grey;
height: 30px;
padding: 2px;
}
tr:hover {
background: #F5F5F5;
}
</style>
</head>
<body>
<div class="">
<table>
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>Age</th>
<th>Email</th>
<th>Phone</th>
<th>Town/City</th>
<th>State</th>
<th>Zipcode</th>
<th>Country</th>
<th>Vehicle Name</th>
</tr>
<tbody>
<?php while($row = mysqli_fetch_array($res)){ ?>
<tr>
<td><?php echo $row['fname']; ?></td>
<td><?php echo $row['lname']; ?></td>
<td><?php echo $row['age']; ?></td>
<td><?php echo $row['email']; ?></td>
<td><?php echo $row['phone']; ?></td>
<td><?php echo $row['town']; ?></td>
<td><?php echo $row['state']; ?></td>
<td><?php echo $row['zipcode']; ?></td>
<td><?php echo $row['country']; ?></td>
<td><?php echo $row['vname']; ?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</body>
</html>