title: How to increment an array in a loop
body: <p>I am trying to post the contents of an array to a MySQL database using PHP.</p>
  
  <pre><code>$i = 0;
  
  while($i &lt; 8 ) {
  mysql_query("INSERT INTO posted (posty) 
  VALUES ('$nummARAY[1]')");
  
  $i = $i +1;
  }
  </code></pre>
  
  <p>But I would like <code>$nummARAY</code> to count up by 1 each loop (until it gets to 8 of course) </p>
  
  <p>I am sure this is super newbie stuff, so hopefully there is a one or two word answer out there. </p>
  
  <p>Thanks, Will! </p>