l109/sacha map po/includes/roldetails.php

<?php include('db.php'); $query = "select * from acteurs a, rollen r, films f where a.acteur_id = r.acteur_id and r.film_id = f.film_id and a.acteur_id = $acteurnr"; $result = mysqli_query($db, $query) or die(mysqli_error($db)); //ophalen uit het resultaat while($row = mysqli_fetch_array($result)){ echo "<div>$row[rol_voornaam] $row[rol_achternaam] - <a href='filmdetails.php?film_id=$row[film_id]'>$row[titel]</a></div>"; }

Resultaat

Made by Thijs Aarnoudse