title: php mysql query search with 2 parameters
body: <p>I have this code</p>
  
  <pre><code> $sql5 = "SELECT * FROM iptable 
                 WHERE user_id = '$userid_c' AND ip = '$ip' LIMIT 0, 30 ";
   $query5=mysql_query($sql5);
   $row_ip_a = mysql_num_rows($query5);
  </code></pre>
  
  <p>When I use this from phpmyadmin it returns fine results but when I use it from php it always returns one row.</p>
  
  <p>What could be the reason?</p>