blob: 84dc75397310f7b38ffc340bf714410e264ae0b0 (
plain)
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
|
<!DOCTYPE html>
<?php require "db.php"; ?>
<html>
<head>
<?php include 'head.php' ?>
<title>webshop</title>
<link rel='stylesheet' type='text/css' media='screen' href='home.css'>
</head>
<body>
<?php include 'navbar.php' ?>
<div class="main limwidth">
<div class="s1">
<h1>hier zijn de aanbiedingen</h1>
<ul>
<?php
$res = $cursor->query("select product.id, product.name as name from promotion join product on product.id = promotion.product");
while ($product = $res->fetch_object()) {
echo "<li><a href=\"/product.php?id=$product->id\">$product->name</a></li>";
}
?>
</ul>
</div>
</div>
<?php include 'footer.php' ?>
</body>
</html>
|