title: Why does it keep saying fatal error bind parameter on a non object
body: <pre><code> &lt;?php
   include('db_conx.php');
   $username= $_POST ['username'];
    $password= $_POST ['password'];
   //Test:
   echo "&lt;h1&gt;Username: $username&lt;/h1&gt;";
   echo "&lt;h1&gt;Password: $password&lt;/h1&gt;";
   $mysqli=new mysqli       
   ('localhost','1800758_robbie','mypassword', '1800758_robbie');
   $stmt=$mysqli-&gt;prepare("SELECT username, password FROM  
   1800758_robbie.users3 WHERE username=? AND password=? LIMIT 1");
    **$stmt-&gt;bind_param('ss', $username,$password);**
   $stm-&gt;execute();
   $stmt-&gt; store_result();
   $res=$stmt-&gt;num_rows();
   if($res == 1) {echo "You have successfully logged in.";}else{echo " the 
  username and password you've supplied is not valid.";}
  ?&gt;
  </code></pre>
  
  <p>I have tried reading several other posts but none match this code. I am so lost as to why I keep getting this error message. All I want to do is create a succesful login page for a forum. BTW I have all my login information correct on my end.</p>