-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmy_products_detail.php
75 lines (44 loc) · 1.7 KB
/
my_products_detail.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
<?php
require "my_products_header.php";
?>
<?php
include 'mysqli_connect.php';
$query=mysqli_query($dbc,"SELECT * FROM Product NATURAL JOIN Customer WHERE Product_ID = '$_GET[Product_ID]'")or die(mysqli_error());
$row=mysqli_fetch_array($query);
?>
<link href="style_ProductDetail.css" rel="stylesheet">
<main>
<div class="container">
<!-- Left Column -->
<div class="left-column">
<img class="active" src="ProductImage/<?php echo $row['Product_image']?>" width=400px alt="Image of Product" >
</div>
<!-- Right Column -->
<div class="right-column">
<!-- Product Description -->
<div class="product-description">
<span>Category: <?php echo $row['Category']; ?></span>
<h1> <?php echo $row['Product_Name']; ?> </h1>
<p>Price in market: $<?php echo $row['Price_New']; ?></p>
<p>Suggested selling price: $<?php echo $row['Price_Recommend']; ?></p>
<p>Post date: <?php echo $row['Date_Post']; ?></p>
<p>Description: <?php echo $row['Product_Description']; ?></p>
</div>
<!-- Product Pricing -->
<div class="product-price">
<span>$<?php echo $row['Price_Sell']; ?></span>
<button class="cart-btn">
<?php echo "<a href=my_favorites_add.php?Product_ID=".$row['Product_ID']." >Like it</a>" ?>
</button>
<button class="cart-btn">
<?php echo "<a href=my_favorites_wantToBuy.php?Product_ID=".$row['Product_ID']." >Want to buy</a>" ?>
</button>
</div>
</div>
<div class="container">
<div class="description">
<h3>Description:</h3>
<p> <?php echo $row['Product_Description']; ?></p>
</div>
</div>
</main>