You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Security-VM/nieuws/users.php

17 lines
406 B

<table border="1">
<tr>
<th>Gebruikersnaam</th>
<th>Wachtwoord</th>
</tr>
<?php
$connection = new mysqli('localhost', 'nieuws', 'pass', 'nieuws')
or die('Kan geen verbinding maken met MySQL');
$result = $connection->query("SELECT * FROM gebruikers");
while($row = $result->fetch_array()) {
echo "<tr><td>{$row['gebruikersnaam']}</td><td>{$row['wachtwoord']}</td></tr>";
}
?>
</table>