l208/index.php

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <link rel="stylesheet" href="style/style.css"> </head> <body> <div class="menubalk"> <a border="10" href="studio.php">studio's</a> <a href="film.php">films</a> <a href="characters.php">characters</a> <a href="personen.php">personen</a> </div> <?php include("db.php"); if($_POST['wachtwoord'] === 'Grimme' && $_POST['gebruikersnaam'] === 'Grimme'){ header("Location: index.php"); exit(); } $query = "select * from studio"; $result = mysqli_query($db, $query); echo "<h3> studio's</h3>"; while($row = mysqli_fetch_array($result)){ echo "<div><a href='studiodetails.php?studioid=$row[studioid]'> - $row[naam]</div>"; } ?> </body> </html>

Resultaat

Made by Thijs Aarnoudse