Advertisement
Guest User

Untitled

a guest
Jan 18th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.47 KB | None | 0 0
  1. <?php
  2.  
  3.     $dbhost = "localhost";
  4.     $dbuser = "root";
  5.     $dbpass = "";
  6.     $dbname = "dinamicnes";
  7.  
  8.     $conn = new mysqli($dbhost, $dbuser, $dbpass, $dbname);
  9. ?>
  10.  
  11. ---------------------------------------------------------------------
  12. ?php
  13.  
  14.     include "connection.php";
  15.    
  16.     $query = new mysqli_query($conn, "SELECT * FROM reki");
  17.  
  18.     while ($results = mysqli_fetch_array($query)){
  19.  
  20.         echo $results[id]. ' '. $results[avtor]. ' ' .$results[rek]. ' ' .$results[povezava];
  21.     }
  22.  
  23. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement