title: Fatal error with fetch_array(mysqli_both)
body: <p>I am receiving a "Fatal error" once the function fetch_array(mysqli_both) is invoked. The file below on the <code>while</code> instance is exactly where the error is coming from.</p>
  
  <pre><code>    &lt;?php
  include 'connect.php';
  $id = $_SESSION['user_id'];
  $res = mysqli_query($mysqli, "SELECT a.name,j.link,j.points, a.submit_time from journal j, article a where a.journal_id = j.id and a.professor_id = $id");
  ?&gt;
  &lt;table&gt;
      &lt;tr&gt;
          &lt;th&gt;Article&lt;/th&gt;
          &lt;th&gt;Journal&lt;/th&gt;
          &lt;th&gt;Points&lt;/th&gt;
          &lt;th&gt;Time&lt;/th&gt;
      &lt;/tr&gt;
  &lt;?php
  while ($row = $res-&gt;fetch_array(MYSQLI_BOTH)) {
  ?&gt;
      &lt;tr&gt;
          &lt;td&gt;&lt;?php echo $row[0] ?&gt;&lt;/td&gt;
          &lt;td&gt;&lt;?php echo $row[1] ?&gt;&lt;/td&gt;
          &lt;td&gt;&lt;?php echo $row[2] ?&gt;&lt;/td&gt;
          &lt;td&gt;&lt;?php $date = date_create($row[3]);
  echo date_format($date, 'Y-m-d H:i:s'); ?&gt;&lt;/td&gt;
      &lt;tr&gt;
  &lt;?php   
  }
  ?&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>When i try it on my wampserver i don't have this problem as i activated couple of PHP extensions. Online, i don't think it's easy to activate such extensions. Do you think this error is related to the fact that i didn't invoked the <code>$query</code> as a variable with <code>$mysqli</code> in line 4?</p>