-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrand_product.php
152 lines (130 loc) · 4.8 KB
/
brand_product.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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<?php
require'db.php';
session_start();
$value = $_GET['brand'];
?>
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link href="css/style.css" rel="stylesheet" type="text/css" media="all"/>
<link href="css/style1.css" rel="stylesheet" type="text/css" media="all"/>
<link href="css/slider.css" rel="stylesheet" type="text/css" media="all"/>
<link href="css/style1.css" rel="stylesheet" type="text/css" media="all"/>
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/move-top.js"></script>
<script type="text/javascript" src="js/easing.js"></script>
<script type="text/javascript" src="js/startstop-slider.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
</head>
<body>
<!--<nav class="navbar navbar-light bg-light">
<a class="navbar-brand" href="#">Navbar</a>
</nav> -->
<!--<div class="container">
<div class="header">
<div class="header_top">
<div class="logo">
<a href="index.php"><img src="images/mylogo.png" alt="logo"></a><br>
</div>
</div>
</div>
</div>-->
<!--<div class="header_bottom">
<div class="menu">
<ul>
<li class="active"><a href="#">Mobile</a></li>
</ul>
</div>
</div> -->
<!--<div class="container">
<div class="header_bottom">
<ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link" href="index.php" >Home</a>
</li>
</ul>
</div> -->
<div class="wrap">
<?php include'header.php'; ?>
<div class="header_bottom">
<div class="menu">
<ul>
<li><a href="index.php">Home</a></li>
<div class="clear"></div>
</ul>
</div>
<div class="search_box">
<form method="GET" action="search_result.php">
<input type="text" value="Search" name="search" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Search';}"><input type="submit" value="">
</form>
</div>
<div class="clear"></div>
</div>
</div>
<div class="main">
<div class="content">
<div class="content_top">
<div class="heading">
<h3><?php echo $value; ?></h3>
</div>
<!--<div class="see">
<p><a href="#">See all Products</a></p>
</div>-->
<div class="clear"></div>
</div>
<div class="section group">
<?php
$sql = "SELECT * FROM product_table WHERE `brand` = '$value'";
$act = $db->query($sql);
while ($data =$act -> fetch_assoc()) {
?>
<div class="grid_1_of_4 images_1_of_4">
<a href="preview.php?id=<?php echo $data['p_id'] ?> && cat=<?php echo $data['p_type'] ?>"><img src="images/<?php echo $data['p_image'] ?>" width="150" height="150" alt="" /></a>
<h2><?php echo $data['p_name'] ?> </h2>
<div class="price-details">
<div class="price-number">
<p><span class="rupees">Tk: <?php echo $data['price'] ?></span></p>
</div>
<div class="add-cart">
<h4><a href="preview.php?id=<?php echo $data['p_id'] ?> && cat=<?php echo $data['p_type'] ?>">Add to Cart</a></h4>
</div>
<div class="clear"></div>
</div>
</div>
<?php } ?>
</div>
<!--<div class="main">
<div class="content">
<div class="content_top">
<div class="heading">
<h3>New Products</h3>
</div>
<div class="see">
<p><a href="#">See all Products</a></p>
</div>
<div class="clear"></div>
</div>
<div class="section group">
<div class="grid_1_of_4 images_1_of_4">
<a href="preview.html"><img src="images/feature-pic1.jpg" alt="" /></a>
<h2>Lorem Ipsum is simply </h2>
<div class="price-details">
<div class="price-number">
<p><span class="rupees">$620.87</span></p>
</div>
<div class="add-cart">
<h4><a href="preview.html">Add to Cart</a></h4>
</div>
<div class="clear"></div>
</div>
</div>
</div> -->
<!--</div> -->
</body>
</html>