-
Notifications
You must be signed in to change notification settings - Fork 0
/
account.php
196 lines (157 loc) · 7.06 KB
/
account.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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<?php
include('assets/server/connection.php');
session_start();
// echo "hello";
$a=$_SESSION['user'];
echo $a;
//$name=mysqli_query($conn,"select user_name from users where num=$a");
//$email=mysqli_query($conn,"select user_email from users where num=$a");
//print "$name";
//echo $email;
$stmt = $conn->prepare("SELECT user_name,user_email FROM users where user_email='$a'");
$stmt->execute();
$featured_products =$stmt->get_result();
print_r ($featured_products);
while ($row= $featured_products-> fetch_assoc()){
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no">
<title>product</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<!---<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/fontawesome.min.css" integrity="sha384-QYIZto+st3yW+o8+5OHfT6S482Zsvz2WfOzpFSXMF9zqeLcFV0/wlZpMtyFcZALm" crossorigin="anonymous"> ------>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.15.4/css/all.css" integrity="sha384-DyZ88mC6Up2uqS4h/KRgHuoeGwBcD4Ng9SiP4dIRy0EXTlnuz47vAwmeGwVChigm" crossorigin="anonymous"/>
<link rel="stylesheet" href="assets/css/style.css"/>
</head>
<body>
<!------navbar ----->
<nav class="navbar navbar-expand-lg navbar-light bg-white py-3 fixed-top">
<div class="container">
<img src="assets/img/img21.jpg">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse nav-buttons" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="index.html">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="shop.html">Shop</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Account</a>
</li>
<li class="nav-item">
<a class="nav-link " href="contack.html">Contact Us</a>
</li>
<li class="nav-item">
<a href="cart.html"><i class="fas fa-shopping-bag"></i></a>
<a href="#"> <i class="fas fa-user"></i></a>
</li>
</ul>
</div>
</div>
</nav>
--
</body>
<!--Account-->
<section class="my-5 py-5">
<div class="container row mx-auto">
<div class="text-center mt-3 pt-5 col-lg-6 col-md-12 col-sm-12">
<h3 class="font-weight-bold">Account info</h3>
<hr class="mx-auto">
<div class="account-info">
<p>profile picture:<span><img src="assets/img/<?php echo $row['image']; ?> " alt="img" class="img-fluid mb-3"></span></p>
<p>Names :<span><?php echo " ".$row['user_name'];?></span></p>
<p>Email :<span><?php echo " ".$row['user_email'];?></span> </p>
<p><a href="" id="order-btn">Your orders</a></p>
<p><a href="" id="logout-btn">Logout</a></p>
</div>
</div>
<div class="col-lg-6 col-md-12 col-sm-12">
<form id="account-form">
<h3 class="text-center">Change Password</h3>
<hr class="mx-auto">
<div class="form-group">
<label >Password</label>
<input type="password" class="form-control" id="account-password" name="password" placeholder="Password">
</div>
<div class="form-group">
<label >Confirm Password</label>
<input type="password" class="form-control " id="confirm-password" name="password" placeholder="confirm password">
</div>
<div class="form-group ">
<input type="submit" class="change-pass-btn " id="change-pass" value="change password">
</div>
</form>
</div>
</div>
</section>
<!--Footer-->
<footer class="mt-5 py-5">
<div class="row container mx-auto pt-5">
<div class="footer-one col-lg-3 col-md-6 col-sm-12">
<img src="assets/img/logo.jpg" alt="img" class="logo">
<p class="pt-3">We provide the latest design in most affordable prices</p>
</div>
<div class="footer-one col-lg-3 col-md-6 col-sm-12">
<h5 class="pb-2">features</h5>
<ul>
<li><a href="#">Sherwani</a></li>
<li><a href="#">Indo-Western</a></li>
<li><a href="#">Safa</a></li>
<li><a href="#">Maharaja Har</a></li>
<li><a href="#">Exclusive</a></li>
</ul>
</div>
<div class="footer-one col-lg-3 col-md-6 col-sm-12">
<h5 class="pb-2">Contact Us</h5>
<div>
<h6>Address</h6>
<p>1234 Street Name,City</p>
</div>
<div>
<h6>Phone</h6>
<p>1234567890</p>
</div>
<div>
<h6>Email</h6>
<p>[email protected]</p>
</div>
</div>
<div class="footer-one col-lg-3 col-md-6 col-sm-12">
<h5 class="pb-2">Contact Us</h5>
<div class="row">
<img src="assets/img/ins.jpg" class="img-fluid w-25 h-100 m-2">
<img src="assets/img/ins.jpg" class="img-fluid w-25 h-100 m-2">
<img src="assets/img/ins.jpg" class="img-fluid w-25 h-100 m-2">
<img src="assets/img/ins.jpg" class="img-fluid w-25 h-100 m-2">
<img src="assets/img/ins.jpg" class="img-fluid w-25 h-100 m-2">
</div>
</div>
</div>
<div class="copyright mt-5">
<div class="row container mx-auto">
<div class="col-lg-3 col-md-5 col-sm-12 mb-4">
<img src="assets/img/payment.jpg" >
</div>
<div class="col-lg-3 col-md-5 col-sm-12 mb-4 text-nowrap mb-2">
<p>eCommerce @2025 All Rights Reserved</p>
</div>
<div class="col-lg-3 col-md-5 col-sm-12 mb-4">
<a href="#" ><i class="fab fa-facebook"></i></a>
<a href="#" ><i class="fab fa-instagram"></i></a>
<a href="#" ><i class="fab fa-twitter"></i></a>
</div>
</div>
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
</body>
</html>
<?php
}
?>