-
Notifications
You must be signed in to change notification settings - Fork 0
/
6x6.php
106 lines (87 loc) · 2.46 KB
/
6x6.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE html>
<html>
<head>
<title>6x6 Mixer Trucks - BrownEquipment - Brown Equipment llc</title>
<?php
require("header.php");
?>
</head>
<?php //connect to database
require('admin/connection.php');
?>
<?php
require('nav.php');
?>
<div class="content-wrap">
<div class="container">
<div class="main-wrap">
<div id='wsite-content' class='wsite-elements wsite-not-footer'>
<?php //display thumbnails
require('thumbnails.php');
display_thumbnails($conn, 'SELECT item.*, locations.State FROM item, locations WHERE Subtype="6x6" AND item.Location=locations.ID');
?>
<!-- <style>
table, td, th {
border: 1px solid brown;
}
th {
background-color: brown;
color: white;
}
</style>
<table>
<tr>
<th align = "center">
Photo
</th>
<th align = "center">
Quantity
</th>
<th align = "center">
Year
</th>
<th align = "center">
Make
</th>
<th align = "center">
Model
</th>
<th align = "center">
Description
</th>
<th align = "center">
Price
</th>
<th align = "center">
Location
</th>
</tr>
<?php //print data listed
// $conn is set by the php code above
// $sql = 'SELECT * FROM item WHERE Subtype = "6x6"';
// $result = $conn->query($sql);
while($row = $result->fetch_assoc())
{
echo "<tr>" .
"<td>" . $row['Picture_URL'] . "</td>" .
'<td style="text-align:center;">'.$row['Quantity'] . "</td>" .
'<td style="text-align:center;">'.$row['Year'] . "</td>" .
'<td style="text-align:center;">'.$row['Make'] . "</td>" .
'<td style="text-align:center;">'.$row['Model'] . "</td>" .
'<td style="text-align:center;"><a href="display.php?id=' . $row["ID"] . '" >'.$row['Description'] . "</a></td>" .
'<td style="text-align:center;">'.$row['Price'] . "</td>" .
'<td style="text-align:center;">'.$row['Quantity'] . "</td>" .
"</tr>";
}
?>
</table> -->
</div>
</div>
</div>
<!-- end container -->
</div>
<!-- end main-wrap -->
<?php
require('footer.php');
?>
<html>