Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- </head>
- <body>
- <?php
- mysql_connect("localhost", "root", "");
- mysql_select_db("website");
- $inhalt = mysql_query("SELECT * FROM login_save");
- $liste = array();
- $liste['id'] = array();
- $liste['username'] = array();
- $liste['password'] = array();
- $i = 0;
- while ($data = mysql_fetch_array($inhalt))
- {
- $liste['id']['$i'] = $data['id'];
- $liste['username']['$i'] = $data['username'];
- $liste['password']['$i'] = $data['password'];
- $i++;
- }
- ?>
- <div id="form">
- <form method="post" action="save.php">
- Username: <input type="text" name="username"> <br>
- <br>
- Password: <input type="text" name="password"> <br>
- <input type="submit" value="Senden" >
- </form>
- </div>
- <div id="login_save_ausgabe">
- <?php
- for ($i = 0; $i < count($liste['username']); $i++)
- {
- echo $liste['username'][$i].", ".$liste['password'][$i]."<br>";
- }
- ?>
- </div>
- </body>
- </html>
Add Comment
Please, Sign In to add comment