title: Call to a member function bind_param() on a non-object
body: <p>I am getting this error in PHP
  Call to a member function bind_param() on a non-object in C:\wamp\www\makePitch\include\DB_Functions.php on line 33</p>
  
  <pre><code>  $stmt = $this-&gt;conn-&gt;prepare("INSERT INTO pitches(image_url,trader_id,product_type,price,location) VALUES(?,?,?,?,?)");
      $stmt-&gt;bind_param("sisis", $image_url,$trader_id,$product_type,$price,$location);
  </code></pre>