hip2/genre.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> <H1> </H1> <?php include('db.php'); $genre_id = $_GET['genre_id']; $query = "Select * from games order by naam ASC"; $result = mysqli_query($db, $query) or die(mysqli_error($db).": $query"); while($row = mysqli_fetch_array($result)){ echo "<div><a href='gamedetails.php?game_id=$row[game_id]'>$row[naam]</a></div>"; } ?> </body> </html>

Resultaat

Made by Thijs Aarnoudse