Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Meine eigene Webseite</title>
- <link rel="stylesheet" type="text/css" href="design.css" />
- <meta charset='utf-8'>
- </head>
- <body>
- <fieldset>
- <legend>Registrierungsbereich</legend>
- <table>
- <tbody>
- <tr>
- <td>
- <?php
- $servername = "localhost";
- $username = "root";
- $password = "usbw";
- $dbname = "login";
- // Create connection
- $conn = new mysqli($servername, $username, $password, $dbname);
- // Check connection
- if ($conn->connect_error){
- die("Connection failed: " . $conn->connect_error);
- }
- $sql = "SELECT * FROM `loginuebersicht` ORDER BY ID DESC LIMIT 1";
- $result = $conn->query($sql);
- if ($result->num_rows > 0){
- while($row = $result->fetch_assoc()){
- echo "E-Mailadresse: " . $row["E-Mailadresse"]. " - Username: " . $row["Username"]. " - Passwort: " . $row["Passwort"]. "<br>";
- }
- }else{
- echo "0 results";
- }
- $conn->close();
- ?>
- <p>Sind ihre Daten korrekt?</p>
- <input type="submit" name="submit1" value="Ja"/>
- <input type="submit" name="submit2" value="Nein"/>
- <?php
- if(isset($_POST['submit'])){
- header("Location: http://localhost:8080/User/registrierungsnachfrage.php ");
- }
- ?>
- </td>
- </tr>
- </tbody>
- </table>
- </fieldset>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement