title: What to replace mysql_result with for MySQLi
body: <p>what to replace <code>mysql_result</code> with?</p>
  
  <p>im watching a tutorial now but it was made in 2011 so it is not working now.
  Here is the situation, I will be very grateful if you tell me what to replace mysql_result with here, and what to put in the parenthesis</p>
  
  <pre><code>function update_count() {
      global $link;
      $query  = "SELECT `count`, FROM `hits_count`";
      if($query_run = mysqli_query($link, $query)) {
          $count = mysql_result($query_run, 0, 'count');
          $count_inc = $count + 1;
          echo $count;
      } 
  }
  update_count();
  </code></pre>