Added assignments for week 7

This commit is contained in:
Paul committed 2014-03-19 09:25:30 +01:00
1 parent 6be2ccd72f
commit f23115bab6
5 files changed
+68 -16

No files matched your search

+17
View File
@@ -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>