Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $servername = "localhost";
- $username = "u454126282_luca";
- $password = "lucafraser";
- $dbname = "u454126282_stage";
- // Create connection
- $conn = new mysqli($servername, $username, $password, $dbname);
- // Check connection
- if ($conn->connect_error) {
- die("Connection failed: " . $conn->connect_error);
- }
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <link rel="stylesheet" href="javascript.js">
- <link rel="stylesheet" href="layout.css">
- <title>Bestuur wijzigen</title>
- <link rel="icon" href="images/favicon.png">
- </head>
- <body>
- <ul class="horizontal gray">
- <li><a class="active" href="index.php">Bestuur</a></li>
- <li><a href="bestuurWijzigen.php">Bestuur wijzigen</a></li>
- <li><a href="bestuurToevoegen.php">Bestuur toevoegen</a></li>
- </ul>
- <form action="index.php">
- <table class="table" border="1" frame="void" rules="rows">
- <tr>
- <td><label for="naam">Kies een bestuurslid</label></td>
- <td>
- <select id="kiezen"></select>
- <?php
- $query = "SELECT * FROM Leden";
- $result = $conn->query($query);
- while($row=mysqli_fetch_array($result, MYSQLI_ASSOC)){
- echo "<option value='".$row['ID']."'>".$row['Voornaam']."</option>";
- }
- ?>
- <select id="kiezen"></select>
- </td>
- </tr>
- <tr>
- <td><label for="functie">Functie</label></td>
- <td>
- <select>
- <option value="#" selected="">Voorzitter</option>
- <option value="#">Secretaris</option>
- <option value="#">Penningmeester</option>
- </select>
- </td>
- </tr>
- <tr>
- <td><button type="submit" class="button">Opslaan</button</td>
- </tr>
- </tbody></table>
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement