Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title> </title>
  4. </head>
  5. <body>
  6.  
  7. <?php
  8.  
  9. $wynik = mysql_query("SELECT * FROM tabela")
  10. or die("błąd zapytanie");
  11.  
  12.  
  13. if(mysql_num_rows($wynik>0)){
  14. echo "<table cellpadding=\"2\" border=1>";
  15. while($r = mysql_fetch_assoc($wynik)){
  16. echo"<tr>";
  17. echo"<td>".$r['Imie']."</td>";
  18. echo"<td>".$r['Nazwisko']."</td>";
  19. echo"<td>".$r['Telefon']."</td>";
  20. echo"<td>".$r['nr']."</td>";
  21. echo"<tr>";
  22. }
  23. }
  24. ?>
  25.  
  26. </body>
  27. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement