-
Notifications
You must be signed in to change notification settings - Fork 0
/
store.php
55 lines (44 loc) · 1.2 KB
/
store.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
<?php
$db = mysqli_connect("localhost","root","usbw","arman_db");
$sql = "SELECT * FROM `store`";
$result = mysqli_query($db, $sql);
?>
<!DOCTYPE html>
<html>
<head>
<title>Store</title>
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="icon" type="img-jpg" href="image/logo2.png">
<meta charset="utf-8">
<meta name="author" content="Arman Margaryan">
<meta name="keywords" content="web,anime,tumo,html,css">
<meta name="description" content="web page about html,css,anime and more">
</head>
<body>
<div class="mainsite">
<?php include("menu.php"); ?>
<div class="container">
<h1>Store : </h1>
<br><br><br><br><br>
<?php
while ( $r = mysqli_fetch_assoc($result) ) {
?>
<div class="item">
<div class="title"><a href="item.php?id=<?php echo $r["id"]; ?>">
<?php echo $r["title"]; ?>
</a>
</div>
<p>
<img src="<?php echo $r["img_src"]; ?>" width = "150px">
<?php echo $r["excerpt"]; ?>
</p>
<p><?php echo "Price : " . $r["price"] . "$"; ?></p>
</div>
<?php
}
?>
</div>
<?php include("footer.php"); ?>
</div>
</body>
</html>