Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title></title>
- </head>
- <body>
- <table>
- <thead>
- <tr>
- <td>Naam</td>
- <td>Gemeente</td>
- <td>Datum</td>
- </tr>
- </thead>
- <tbody>
- <?php
- $user = "your DB user here";
- $password = "your DB pass here";
- $db = mysql_connect('localhost', $user, $password);
- if (!$db) {
- die('Not connected : ' . mysql_error());
- }
- $dbname = "your database here";
- $db_select = mysql_select_db($dbname,$db);
- if (!$db_select) {
- die("Database selection also failed miserably: " . mysql_error());
- }
- $results = mysql_query("SELECT NaamFuif, GemeenteFuif, DatumFuif FROM tblfuiven");
- while($row = mysql_fetch_array($results)) {
- ?>
- <tr>
- <td><?php echo $row['NaamFuif']?></td>
- <td><?php echo $row['GemeenteFuif']?></td>
- <td><?php echo $row['DatumFuif']?></td>
- </tr>
- <?php
- }
- ?>
- </tbody>
- </table>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement