title: Multidimensional Array for making 2 sql update query
body: <p>EDIT: i adjusted the array to understand it easyer.</p>
  
  <p>I'm struggling with this a couple of days now and it drives me crazy...</p>
  
  <p>What I basically want is 2 sql update queries that look like this. note that the where statement is from the array.</p>
  
  <p>Code:</p>
  
  <pre><code>"UPDATE gewasregistratie SET lengtegroei= 1, vruchten_geaborteerd= 1, etc.. WHERE kenmerk = 'standaard' AND user_id = ".$user""
  
  "UPDATE gewasregistratie SET lengtegroei= 2, vruchten_geaborteerd= 2, etc.. WHERE kenmerk = 'natugro' AND user_id = ".$user""
  </code></pre>
  
  <p>I got this multi-level array (its a <code>$_POST["type"]</code> array).</p>
  
  <pre><code>Array
  (
      [lengtegroei] =&gt; Array
          (
              [standaard] =&gt; 1
              [natugro] =&gt; 2
          )
  
      [vruchten_geaborteerd] =&gt; Array
          (
              [standaard] =&gt; 1
              [natugro] =&gt; 2
          )
  
      [plantbelasting_geteld] =&gt; Array
          (
              [standaard] =&gt; 1
              [natugro] =&gt; 2
          )
  
      [uitgroeiduur] =&gt; Array
          (
              [standaard] =&gt; 1
              [natugro] =&gt; 2
          )
  
      [percentage_85ers_en_95ers] =&gt; Array
          (
              [standaard] =&gt; 1
              [natugro] =&gt; 2
          )
  
      [oogstfrequentie_per_week] =&gt; Array
          (
              [standaard] =&gt; 1
              [natugro] =&gt; 2
          )
  
      [gezette_vruchten] =&gt; Array
          (
              [standaard] =&gt; 1
              [natugro] =&gt; 2
          )
  
      [gemiddeld_vruchtgewicht] =&gt; Array
          (
              [standaard] =&gt; 1
              [natugro] =&gt; 2
          )
  
      [vruchten_geoogst] =&gt; Array
          (
              [standaard] =&gt; 1
              [natugro] =&gt; 2
          )
  
      [drain] =&gt; Array
          (
              [standaard] =&gt; 1
              [natugro] =&gt; 2
          )
  
  )
  </code></pre>