title: How to make a download button for files taken from a database?
body: <p>I need to print out all the files that I've saved in a database and then make it possible to download them. I am able to echo them, but I don't know how to make a download "button" to download them to the computer.
  The datbase has two columns: ID and Ime.</p>
  
  <p>I tried using a tag from HTML with no luck. I was able to echo buttons next to file names, but I couldn't download them (I tried using file_put_contents method)</p>
  
  <p>This is the code that outputs file names (Ime = Name in my language).</p>
  
  <pre><code>&lt;?php
  $conn = mysqli_connect('localhost','root','usbw','down');
  $query = "SELECT * FROM datoteka";
  $result = mysqli_query($conn,$query);
  $result_check = mysqli_num_rows($result);
  if($result_check &gt; 0){
      while($row = mysqli_fetch_assoc($result)){
          echo $row["Ime"]."&lt;br&gt;";
      }
  }
  ?&gt;
  </code></pre>
  
  <p>The output looks like this:</p>
  
  <pre><code>datoteka2019-04-01-15-44.doc
  datoteka2019-04-01-15-48.doc
  datoteka2019-04-01-15-16.pdf
  </code></pre>
  
  <p>Files in database that I want to be able to download (3 for now, could be more)
  <img src="https://i.ibb.co/f827xqN/slika.png" alt="database picture"></p>
  
  <p>There should be a download button (or something cliclkable) next to each file name on website that would enable me to download this file from the database (one file at time, not all at once).</p>