l104/H17/leden.php

<?php include('../dbpepijn.php'); include('functions.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> <style> h2 { text-align: center; } </style> </head> <body> <h2>Leden</h2> <?php include('menu.php');?> <?php echo '<table> <tr> <th>Naam</th> <th>Gebruikersnaam</th> <th>Plaats</th> <th>Geboortedatum</th> </tr>'; $query = "SELECT * FROM `leden` where gebruikersnaam != 'admin'"; $result = mysqli_query($db, $query); while ($row = mysqli_fetch_array($result)) { echo "<tr> <td>$row[voornaam] $row[tv] $row[achternaam]</td> <td>$row[gebruikersnaam]</td> <td>$row[plaats]</td> <td>$row[geb_datum]</td> </tr>"; } ?> </body> </html>

Resultaat

Made by Thijs Aarnoudse