Advertisement
MatheNico

Login

Apr 26th, 2016
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.27 KB | None | 0 0
  1.     <html>
  2.         <head>
  3.             <title>Meine eigene Webseite</title>
  4.             <link rel="stylesheet" type="text/css" href="design.css" />
  5.             <meta charset='utf-8'>
  6.         </head>
  7.         <body>
  8.             <fieldset>
  9.                 <legend>Registrierungsbereich</legend>
  10.             <table>    
  11.             <tbody>  
  12.             <tr>  
  13.             <td>
  14.        
  15. <?php
  16. $servername = "localhost";
  17. $username = "root";
  18. $password = "usbw";
  19. $dbname = "login";
  20.  
  21. // Create connection
  22. $conn = new mysqli($servername, $username, $password, $dbname);
  23. // Check connection
  24. if ($conn->connect_error){
  25.     die("Connection failed: " . $conn->connect_error);
  26. }
  27.  
  28. $sql = "SELECT * FROM `loginuebersicht` ORDER BY ID DESC LIMIT 1";
  29. $result = $conn->query($sql);
  30.  
  31. if ($result->num_rows > 0){
  32.     while($row = $result->fetch_assoc()){
  33.         echo "E-Mailadresse: " . $row["E-Mailadresse"]. " - Username: " . $row["Username"]. " - Passwort: " . $row["Passwort"]. "<br>";
  34.         }
  35. }else{
  36.     echo "0 results";
  37. }
  38.  
  39. $conn->close();
  40. ?>
  41. <p>Sind ihre Daten korrekt?</p>
  42. <input type="submit"  name="submit1" value="Ja"/>
  43. <input type="submit"  name="submit2" value="Nein"/>
  44. <?php
  45. if(isset($_POST['submit'])){
  46.  
  47.  header("Location: http://localhost:8080/User/registrierungsnachfrage.php ");
  48. }
  49. ?>
  50.        
  51.             </td>
  52.             </tr>  
  53.             </tbody>  
  54.             </table>  
  55.             </fieldset>
  56.        
  57.         </body>
  58.     </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement