Added assignments for week 7
This commit is contained in:
1 parent
6be2ccd72f
commit
f23115bab6
5 files changed
+68
-16
No files matched your search
@@ -0,0 +1,17 @@
|
||||
<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>
|
||||
Reference in new issue
Block a user