l105/PO Informatica P4/po informatica/winkels.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<?php
include('navbar.php');
include('db.php');
$query = "
SELECT *
from winkels w, baas b
where b.baasID = w.baasID
";
$result = mysqli_query($db, $query);
while($row = mysqli_fetch_array($result)) {
echo "<a href='winkelDetails.php?winkelID=$row[winkelID]'><h2>Winkel: $row[winkel_naam] </h2> </a>";
}
?>
<!--
<h1>Winkels</h1>
<p>assortiment</p>
<p>locatie</p>
<p>eigenaar</p>
<p>werknemers</p>
<p>klanten</p> -->
</body>
</html>
Resultaat
Made by Thijs Aarnoudse