Guest User

Untitled

a guest
Sep 1st, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. <html>
  2. <head>
  3.  
  4. </head>
  5.  
  6. <body>
  7. <?php
  8. mysql_connect("localhost", "root", "");
  9. mysql_select_db("website");
  10.  
  11. $inhalt = mysql_query("SELECT * FROM login_save");
  12.  
  13. $liste = array();
  14. $liste['id'] = array();
  15. $liste['username'] = array();
  16. $liste['password'] = array();
  17. $i = 0;
  18.  
  19. while ($data = mysql_fetch_array($inhalt))
  20. {
  21. $liste['id']['$i'] = $data['id'];
  22. $liste['username']['$i'] = $data['username'];
  23. $liste['password']['$i'] = $data['password'];
  24. $i++;
  25. }
  26. ?>
  27. <div id="form">
  28.  
  29. <form method="post" action="save.php">
  30.  
  31. Username: <input type="text" name="username"> <br>
  32. <br>
  33. Password: <input type="text" name="password"> <br>
  34.  
  35. <input type="submit" value="Senden" >
  36. </form>
  37. </div>
  38.  
  39. <div id="login_save_ausgabe">
  40. <?php
  41. for ($i = 0; $i < count($liste['username']); $i++)
  42. {
  43. echo $liste['username'][$i].", ".$liste['password'][$i]."<br>";
  44. }
  45. ?>
  46. </div>
  47. </body>
  48. </html>
Add Comment
Please, Sign In to add comment