title: Check if value in array and create php if statement
body: <p>I have been able to create the array after my query.</p>
  
  <pre><code>&lt;?
      $results = array();
      while($row = mysql_fetch_assoc($result))
      {
         $results[] = $row;
      }
  ?&gt;
  </code></pre>
  
  <p>I now have the following array from the query result:</p>
  
  <pre><code>array(2) {
    [0]=&gt;
    array(1) {
      ["form_type"]=&gt;
      string(6) "VF-302"
    }
    [1]=&gt;
    array(1) {
      ["form_type"]=&gt;
      string(6) "VF-301"
    }
  }
  </code></pre>
  
  <p>If, for instance, the "VF-301" value exists the array, what would a php if statement be?</p>
  
  <pre><code>    &lt;? //not working
      if(in_array("VF-300", $results)){ 
      echo "this value is in array";
      } else {
      echo "this value is not in array";
      }
      ?&gt;
  </code></pre>