title: Foreach loop with MySQL query
body: <p>I have an array.</p>
  
  <pre><code>$select_crm=mysql_query("select * from party_details where subcaseid='$under_row[partyid]'");
  $select_array=array($select_crm);
  if(mysql_num_rows($select_crm)&gt;0)
   {
    foreach($select_array as $v)
    {
      $fetch_crm=mysql_fetch_array($v);
      echo $fetch_crm['party_name'];
      echo $fetch_crm['partyid'];``
    }
   }
  </code></pre>
  
  <p>But it can't works properly. <code>$select_crm</code> have two rows but it print only one.</p>