Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
98
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. <meta charset="UTF-8">
  4. </head>
  5. <body>
  6. <?php
  7.  
  8. function dbakcja(){
  9. $host="localhost";
  10. $user="root";
  11. $password="";
  12. $dbname="baza";
  13. $sql = mysqli_connect($host,$user,$password,$dbname);
  14. }
  15.  
  16.  
  17. $mysql = dbakcja();
  18. foreach ($mysql->query('SELECT * from autorzy') as $wpis){
  19.  
  20. echo "<h2>" .$wpis['IDAutor']."</h2>";
  21. echo "<h1>" .$wpis['Imie']."</h1>";
  22. echo "<h3>" .$wpis['Nazwisko']."</h3>";
  23. }
  24.  
  25.  
  26.  
  27. ?>
  28. </body>
  29. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement