l109/sacha map po/filmdetails.php
<?php
include('menubalk.php');
include('db.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="css/style.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<?php
$filmnr = $_GET['film_id'];
$query ="select *
from films
where film_id = $filmnr
order by film_id";
$result = mysqli_query($db, $query) or die(mysqli_error($db));
//ophalen uit het resultaat
$row = mysqli_fetch_array($result);
echo "<h2>$row[titel]</h2>";
echo "<div>Informatie over deze film</div>";
echo "<div>";
echo "<p>Genre: $row[genre]</p>";
echo "<p>Duur: $row[speeltijd]</p>";
echo "<p>Leeftijdscategorie: $row[leef_categorie]</p>";
echo "<p>Releasedatum: $row[rel_datum]</p>";
echo "</div>";
include('includes/regisseurdetails.php');
include('includes/componistdetails.php');
//include('includes/roldetails.php');
?>
</body>
</html>
Resultaat
Made by Thijs Aarnoudse