title: Display one result(cell) from mysqli query
body: <p>I have been trying to rack my brains on this one for a while and the documentation on both MySQL and MySQLi is confusing me. Would it be possible to get any help?</p>
  
  <p>I have a table called track_table and it contains two rows hash and track</p>
  
  <pre><code>    hash              |  track
      sdfsdfsdfsdfsdfsd |  Azelia Banks - 1991
  </code></pre>
  
  <p>I want to display the track name but I don't know how to. I have tried 'mysqli_fetch_assoc' and various other functions but nothing. Here is the query I have so far.</p>
  
  <pre><code>    $hash = $_GET['sub'];
  
      $check_track = "SELECT track FROM track_table WHERE hash = '.$hash.' ";
      $track_res = mysqli_query($mysqli, $check_track) or die (mysqli_error($mysqli));
  
      $result = mysqli_fetch_assoc($track_res);
      echo $result['track'];
  </code></pre>
  
  <p>I just want to be able to display the track name on a webpage.</p>
  
  <p>I know I haven't implemented any security features and I'm taking data straight from the user, I shall do this later, once I have fixed this problem.</p>