title: Showing data thats fulfills more than one specified criterion
body: <p>Got setup simple database for learning. Got data inserted. Now im trying make show that data that fulfills criterion is only displayed. Like i select in forms age 33 and male. Then only male that age are 33 are showed. i managed get working script that works only with one criterion.</p>
  
  <pre><code> &lt;?php
  $rass = $_POST["rass"];
  $rinnad = $_POST["rinnad"];
  $connect = @mysql_connect ("localhost", "root", "") or die("Fail!!!! :D:D:D");
  mysql_select_db("tibid") or die("selline andmebaas puudub");
  $query = mysql_query("SELECT * from test where rass = '{$rass}'");
  $num_rows = mysql_num_rows($query);
  if($num_rows &gt; 0){
      {while($row = mysql_fetch_assoc($query))        
          echo 
          $row['rinnad']. "&lt;br&gt;"
          .$row['juuksed']."&lt;br&gt;"
          .$row['silmad']."&lt;br&gt;"
          .$row['rass']."&lt;br&gt;"
          .$kood['kood']."&lt;br&gt;
          &lt;hr&gt;
          ";}
      }else{ 
  echo "Andmebaas on tühi";
      }
  ?&gt;
  </code></pre>
  
  <p>Thank you.</p>