l105/PO Informatica P4/muziekProducten.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> <style> </style> </head> <body> <?php include('db.php'); $muziekProducten = " select * from producten p, verkopen v where winkelID = 4 and p.productID = v.productID "; $resultMuziekProducten = mysqli_query($db, $muziekProducten) or die(mysqli_error($db)); echo "<h3>Alle muziek producten</h3>"; while ($row = mysqli_fetch_array($resultMuziekProducten)) { echo "$row[1] <br>"; } ?> </body> </html>

Resultaat

Made by Thijs Aarnoudse