-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlist.php
76 lines (59 loc) · 1.97 KB
/
list.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
<?php
session_start();
$products = array();
require 'db.inc.php';
$gender = $_GET['sex'];
$sql = 'SELECT * FROM items WHERE p_gender="'.$gender.'";';
$result = mysqli_query($conn, $sql);
while($row = mysqli_fetch_array($result)){
array_push($products , $row[0]);
}
mysqli_close($conn);
?>
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="login_style.css">
<link rel="stylesheet" href="style_list.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
<title>VELASCA</title>
</head>
<body>
<div id="wrapper" >
<style>
nav{
position: fixed;
}
nav #logo{
color: black;
}
</style>
<?php
include 'navbar.php'
?>
<div class="top-banner" style="margin-top:120px;margin-bottom:50px;">
<?php
if($_GET['sex']=='M'){
echo '<img src="images/men_banner.jpg" style="width:100%" alt="">';
}
else{
echo '<img src="images/women_banner.png" style="width:100%" alt="">';
}
?>
</div>
</div>
<?php
foreach ($products as $p_id){
include 'list.inc.php';
}
?>
<?php
include 'footer.php'
?>
</body>
<script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
crossorigin="anonymous"></script>
<script src="list_script.js"></script>
<link href="https://fonts.googleapis.com/css?family=Cedarville+Cursive|Karla|Bad+Script|Handlee" rel="stylesheet">
</html>