-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathall_electronics.php
More file actions
87 lines (70 loc) · 1.86 KB
/
all_electronics.php
File metadata and controls
87 lines (70 loc) · 1.86 KB
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
<?php
//include 'session.php';
include 'conn.php';
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Electonics</title>
<?php include 'link.php'; ?>
<style type="text/css">
/*start here wish list heart */
a:link{
color: gray;
text-decoration: none;
}
a:visited{
color: darkgray;
text-decoration: none;
}
a:hover{
color: red;
text-decoration: none;
}
button:focus {
outline: 0;
}
/*end here wish list heart */
</style>
</head>
<body>
<?php
if(isset($_SESSION['ui'])) {
include 'navlog.php';
}
else { include 'nav.php'; }
?>
<div style="margin-top: 20px; margin-bottom: 20px; padding-top: 15px; box-shadow: 0px 0px 2px 1px #e1e2e3;" class="container card">
<div class="row">
<div class="col-6">
<h5><b>Electronics</b></h5>
</div>
<div class="col-6">
<button class="float-right btn btn-info">View All</button>
</div>
</div>
<?php
$result = mysqli_query($conn, "SELECT * FROM auction where catagory = 'electronics'" );
echo '<div class="row">';
while($row = mysqli_fetch_array($result)) {
echo ' <div class="col-6 col-sm-3"><div class="card-body text-left">
<img src="img2.jpg" class="rounded" alt="Cinque Terre" width="100%">
<div class="row">
<div class="col-9">';
echo $row[18];
echo '</div>
<div class="col-3">
</div>
</div>';
echo $row[1];
echo '<br/>';
echo $row[6];
echo '</div><hr></div>';
}
echo '</div>';
?>
</div>
<?php include 'footer.php'; ?>
</body>
</html>