-
Notifications
You must be signed in to change notification settings - Fork 0
/
gentlemen.php
112 lines (97 loc) · 4.85 KB
/
gentlemen.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
107
108
109
110
111
112
<!DOCTYPE html>
<html>
<head>
<title>Dressmore</title>
<link rel="stylesheet" href="Cart.css">
<link href="webcss.css" type="text/css" rel="stylesheet">
</head>
<body>
<ul style="background-color: rgb(82, 4, 4);">
<a href="shoppingnew.php"><img src="images/Ca.PNG " height="60px" width="150px"></a>
<img src="images/Capture.PNG " height="60px" width="250px">
<li class><a href="service.html">service</a></li>
<li class><a href="#">partner</a></li>
<li><a href="#">login</a></li>
<input class="input" type="text"placeholder ="search.."style=" border-radius:10px;width:800px" ><button type="submit"style=" border-radius:10px;">search</button>
</ul>
<div class="ca1">
<h2> Shoping Cart</h2>
<?php
$connection = mysqli_connect('localhost','root','','testin');
$query = "SELECT * FROM cart WHERE id >=76 && id<85";
$result = mysqli_query($connection,$query);
if(mysqli_num_rows($result)>0){
while($row = mysqli_fetch_array($result))
{
?>
<div class="ca2">
<form method="post" action="cartinfo.php?action=add&id=<?php echo $row["id"]; ?>">
<div class="ca3" style="margin-left:50px;width:250px;height:500px" >
<img src="watch/<?php echo $row["image"]; ?>" style="width:200px; height:250px;" >
<h5 style="color:black;font-size:20px;"><?php echo $row["name"]; ?></h5>
<h5 style="background-color:red;font-size:20px;"><?php echo $row["price"] ; ?></h5>
<input type="text" name="quantity" value="1">
<input type="hidden" name="hidden_name" value="<?php echo $row["name"];?> ">
<input type="hidden" name="hidden_price" value="<?php echo $row["price"]; ?>">
<br>
<button type="submit" name="add_to_cart" >Add to cart </button>
</div>
</form>
</div>
<?php
}
}
?>
<div id="footer">
<div class="container">
<div class="footer_sub_1">
<h2>Mail Us:</h2>
<p class="p"Style="background-color:black">Mail Us:
Hashlanka Internet Pvt Ltd Block B (Galle),
Ground Floor, Embassy Tech Village,
Outer Ring Road, Devarabeesanahalli Village,
Varthur Hobli, Bengaluru East Taluk,
Bengaluru District,
Galle, Srilanka, 560103. <span><a href="#">read more..</a></span>
</p>
</div>
<div class="footer_sub_2">
<center>
<h2>Important Links</h2>
<ul Style="background-color:black">
<li><a href="#">Home</a></li>
<li><a href="#">Deals</a></li>
<li><a href="#">products</a></li>
<li><a href="#">Order</a></li>
</ul>
</center>
</div>
<div class="footer_sub_3">
<center>
<h2>Social Links</h2>
<ul Style="background-color:black">
<li><a href="https://www.facebook.com/hashika.maduranga">Facebook</a></li>
<li><a href="#">Google</a></li>
<li><a href="#">Youtube</a></li>
<li><a href="#">Twitter</a></li>
<li><a href="#">Linkedin</a></li>
<li><a href="#">Blogger</a></li>
<li><a href="#">Watssapp</a></li>
<li><a href="#">Viber</a></li>
</ul>
</center>
</div>
<form method="post" action="shopping new.php">
<div class="footer_sub_4">
<center>
<h2>Subcribe Us</h2>
<input type="text" name="subs" placeholder="Write your email" class="subs">
<input type="submit" name="subs"class="sub-btn"name="register_btn">
<p1 class="p">Enter your email for get notification by us</p1>
</center>
</div>
</form>
</div>
</div>
</body>
</html>