title: Problems with foreach PHP
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php
  include('../../../config.php');
  
   for ($i=0;$i&lt;count($_POST['theID']);$i++) {
  
    $id = $_POST['theID'][$i];
  
    mysql_query("UPDATE ava_users SET about = '$id' WHERE id = '$id'");
  
   } 
  ?&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I have a select multiple option form that has an $_POST output of: 2,3 for an example. The 2,3 are ID's I have selected for user's IDs.</p>
  
  <p>Id like to use ID's 2,3 and add them into a MySQL_query() such as,</p>
  
  <p>MySQL_query("INSERT INTO... WHERE ID = 2);</p>
  
  <p>MySQL_query("INSERT INTO... WHERE ID = 3);</p>
  
  <p>etc.. </p>
  
  <p>I have tried this snippet code and seems to be not working...</p>
  
  <p>Can anyone help?</p>