parent
6be2ccd72f
commit
f23115bab6
@ -1,5 +1,5 @@ |
||||
var page = require('webpage').create(); |
||||
page.open('http://localhost/nieuws/', 'post', 'email=admin@nieuws.nl&password=sesame', function() { |
||||
page.open('http://localhost/nieuws/', 'post', 'gebruikersnaam=Admin&wachtwoord=sesame', function() { |
||||
setTimeout(function(){ |
||||
phantom.exit(); |
||||
}, 1000); |
||||
|
@ -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> |
Loading…
Reference in new issue