title: PHP/MySQL array help need
body: <pre><code>&lt;?php
  include 'db.php';
  $i=0;
  $result15=mysql_query("select c.dishes from c");
  while($row=mysql_fetch_array($result15))
  {
  if($row['dishes']!=NULL)
  {
  $dish[$i]=$row['dishes'];
  $i++;
  }
  
   }
    mysql_close();
    $j=0;
    while($j&lt;=$i)
   {
  echo $dish[$j];
  $j++;
  }
  ?&gt;
  </code></pre>
  
  <p>Getting notice: Undefined offset: 2 in F:\xampp\htdocs....on line 18</p>