Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <link rel="stylesheet" href="css.css" />
- <body>
- <?
- include("dbinfo.inc.php");
- include("header.php");
- // Define your username and password
- $pwusername = "deflecht";
- $pwpassword = "reuni1e";
- if ($_POST['txtUsername'] != $pwusername || $_POST['txtPassword'] != $pwpassword) {
- ?>
- <h1>Login</h1>
- <form name="form" method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
- <p><label for="txtUsername">Username:</label>
- <br /><input type="text" title="Enter your Username" name="txtUsername" /></p>
- <p><label for="txtpassword">Password:</label>
- <br /><input type="password" title="Enter your password" name="txtPassword" /></p>
- <p><input type="submit" name="Submit" value="Login" /></p>
- </form>
- <?php
- }
- else {
- ?>
- echo "<center><table class='zork'>";
- mysql_connect(localhost,$username,$password);
- @mysql_select_db($database) or die( "Unable to select database");
- $result = mysql_query("SELECT * FROM lijst ORDER BY ID ASC");
- while($row = mysql_fetch_assoc($result)){
- echo "<tr><td>".$row['ID']." ".$row['voornaam']." ".$row['tussenvoegsel']." ".$row['achternaam']."</td><td>".$row['betaald']."</td></tr>";
- }
- ?>
- <form action="editbetaald.php" method="post">
- <p><label for="editID">ID</label> <input type="text" name="editID" /></p>
- <p><label for="nubetaald">Betaald?</label> <input type="text" name="nubetaald" /></p>
- <p class="submit"><input type="submit" value="Verzenden" /></p>
- </form>
- <?
- echo "</table>";
- echo "</center>";
- include("footer.php");
- ?>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement