x110/H2.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>
<?php
include("db.php")
$resultaat = mysqli_query( "SELECT voornaam, tussenvoegsel, achternaam FROM leerlingen ORDER BY achternaam");
if($resultaat){
while($row = mysqli_fetch_assoc($result)){
echo $row['voornaam'] . $row['tussenvoegsel'] . $row['achternaam'] . "<br>";
}
}
?>
</body>
</html>
Resultaat
Made by Thijs Aarnoudse