title: Display single column value of mysqli query
body: <p>How can I get a single column value from mysqli? The result should be single row with only one column.</p>
  
  <p>This is what I have tried:</p>
  
  <pre><code>$query = "SELECT MAX(`userid`) FROM `user`";
  $rlt = mysqli_query($this-&gt;db, $query);
  echo $rlt['userid'];
  </code></pre>