title: MySQLi Prepared Statement Query Issue
body: <p>I'm relatively new to MySQLi prepared statements, and running into an error. Take this code:</p>
  
  <pre><code>$user = 'admin';
  $pass = 'admin';
  
  if ($stmt = $mysqli-&gt;query("SELECT * FROM members WHERE username='$user' AND     password='$pass'"))
  {
  echo $stmt-&gt;num_rows;
  }
  </code></pre>
  
  <p>This will display "1", as it should.</p>
  
  <p>This next piece of code though, returns "0":</p>
  
  <pre><code>$user = 'admin';
  $pass = 'admin';
  
  if ($stmt = $mysqli-&gt;prepare("SELECT * FROM members WHERE username=? AND password=?"))
  {
  $stmt-&gt;bind_param("ss", $user, $pass);
  $stmt-&gt;execute();
  echo $stmt-&gt;num_rows;
  }
  </code></pre>
  
  <p>Any ideas why?</p>