title: php getting values out of an array with same 'id' number
body: <p>I'm having trouble getting the value out of an array</p>
  
  <pre><code>Array
  (
      [0] =&gt; id
      [column_name] =&gt; id
  )
  Array
  (
      [0] =&gt; businessType
      [column_name] =&gt; businessType
  )
  Array
  (
      [0] =&gt; name
      [column_name] =&gt; name
  )
  Array
  (
      [0] =&gt; city
      [column_name] =&gt; city
  )
  ...
  </code></pre>
  
  <p>I'm getting those values from </p>
  
  <pre><code>mysql_query("
  SELECT column_name 
  FROM information_schema.columns 
  WHERE table_name='businessUpgrade' 
  ")
  </code></pre>
  
  <p>And in my while loop</p>
  
  <pre><code>while($row = mysql_fetch_array($result)){
     while($column = mysql_fetch_array($colName)){
       if($row[$i] == 1){
               //here comes the missing part
       }
       $i++;
     }
  }
  </code></pre>
  
  <p>I tried diffrent things, but according to print_r, the values I need to get have the same number of id (0). Is there any way, I can get the values out of this array.
  I found that I should do it with foreach, but somehow everything I try it fails.</p>