title: php var_dump returning blank array
body: <p>I'm following this tutorial on youtube:</p>
  
  <p><a href="https://www.youtube.com/watch?v=VSF5p00uorc" rel="nofollow">https://www.youtube.com/watch?v=VSF5p00uorc</a></p>
  
  <p>Around 4:28 - I get the following array when I load the sql.php page as in the tutorial:</p>
  
  <pre><code>array(8) { [1]=&gt; NULL [2]=&gt; NULL [3]=&gt; NULL [4]=&gt; NULL [5]=&gt; NULL [6]=&gt; NULL [7]=&gt; NULL [8]=&gt; NULL }
  </code></pre>
  
  <p>I do have 8 ids all with values in my data table. This is my code:</p>
  
  <pre><code>&lt;?php
  
  $con = mysqli_connect("localhost","root","","test2") or die('error');
  $query = "select * from data";
  $result = mysqli_query($con,$query);
  
  while($row = mysqli_fetch_array($result))
  {
      $id = $row['id'];
      $feed = $row['feed'];
      $data[$id] = $feed;
  }
  var_dump($data);
  ?&gt;
  </code></pre>