-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduct_page.php
80 lines (59 loc) · 2.04 KB
/
product_page.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
<?php
require_once './views/header.php';
?>
<?php
include("./requires/connection.php");
$query = "SELECT * FROM products";
$result = mysqli_query($connection,$query);
if (!$result)
{
die ("Error");
}
?>
<br><br><br>
<div id="summer-collection">
<img src="images/diamong-icon.png">Products Collection
<img src="images/diamong-icon.png">
</div>
<div id="summer-products">
<?php
$temp=0;
echo "<div>";
while($row=mysqli_fetch_array($result))
{
if ($row['productInStock']!="Yes"){
continue;
}
$temp++;
echo "<a href='product_details.php?id=$row[productID]'><img src=\"images/".$row['imageAddress']."\"width=300 height=300 /></a>";
echo (" ");
if ($temp==4){
echo "</div>";
}
}
?>
<!--
<div id="summer-products-row1">
<a href="product_details.php"><img src="images/FEATURED 1.png"></a>
<a href="#"><img src="images/FEATURED 1 copy.png"></a>
</div>
<div id="summer-products-row2">
<a href="product_details.php"><img src="images/FEATURED 2.png"></a>
<a href="product_details.php"><img src="images/FEATURED 2 copy.png"></a>
</div>
<div id="summer-products-row3">
<a href="product_details.php"><img src="images/FEATURED 3.png"></a>
<a href="product_details.php"><img src="images/FEATURED 3 copy.png"></a>
</div>
<div id="summer-products-row4">
<a href="product_details.php"><img src="images/FEATURED 4.png"></a>
<a href="product_details.php"><img src="images/FEATURED 4 copy.png"></a>
</div>
</div> -->
<div>
<br><br><br>
</div>
<?php
require_once './views/sponsors.php';
require_once './views/footer.php';
?>