title: Get information from database
body: <p>When I click on artikle It needs to diretct me to page.php where I display whole article.
  Problem is im not sure how to with $_GET superglobal var properly take information. I have to get ID with $_GET.</p>
  
  <p>I already have included database in my index.php where I displayed several articles.</p>
  
  <p>Im sending id like this:</p>
  
  <pre><code> echo '&lt;a href="clanak.php?  class="form-field-textual"  id='.$row['id'].'"&gt;';
  </code></pre>
  
  <p>//article.php</p>
  
  <pre><code>    &lt;?php
   $servername = "localhost:3306";
   $user = "root";
   $pass = "";
   $dbo = "projekt";
  
  // Create connection
  $conn = new mysqli($servername, $user, $pass, $dbo);
  // Check connection
  if ($conn-&gt;connect_error) {
    die("Connection failed: " . $conn-&gt;connect_error);
  }
  
  $sql = "SELECT * FROM projekt";
  
  
  if ($conn-&gt;query($sql)===TRUE) {
    $specID=$conn-&gt;insert_id;
  
          echo "id: " . $row["id"]. " - Name: " .
   $row["kategorija"]. " " . $row["naslov"]. "&lt;br&gt;";
  
      } else {
    echo "0 results";
  }
  $conn-&gt;close();
  ?&gt; 
  </code></pre>