Advertisement
Guest User

Untitled

a guest
Oct 21st, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. <!DOCTYPE html><html><head><meta charset="utf-8"></head><body>
  2. <?php
  3. //$username = $_POST["username"];
  4. //$password = $_POST["password"];
  5. $zaehler = 0;
  6. $con = mysqli_connect("", "root", "", "userdaten");
  7. $abfrage = "SELECT * FROM daten";
  8. $res = mysqli_query($con,$abfrage);
  9. $num = mysqli_num_rows($res);
  10.  
  11. while($zaehler < $num)
  12. {
  13. $erg = mysqli_fetch_assoc($res);
  14. echo $erg["username"]; ?> <br> <?php
  15. echo $erg["password"];?> <br> </br><?php
  16. $zaehler=$zaehler+1;
  17. }
  18.  
  19. mysqli_close($con);
  20.  
  21. ?>
  22. </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement