x100/L1.php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>L1</title>
</head>
<body>
<?php
include('db.php');
$query = "select titel, pub_jaar
from boeken
";
$result = mysqli_query($db, $query) or die(mysqli_error($db));
echo "<table border=1>";
echo "<tr><td>title</td><td>publicatiejaar</td><td>verwijderen</td></tr>";
while($row=mysqli_fetch_array($result)){
echo "<tr>";
echo "<td>$row[titel]</td>";
echo "<td>$row[pub_jaar]</td>";
echo "<td><a href=L1.php>Verwijder</a></td>";
echo "<tr>";
}
echo "</table";
?>
</body>
</html>
Resultaat
Made by Thijs Aarnoudse