1

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

  $stmt = $this->conn->prepare("INSERT INTO pitches(image_url,trader_id,product_type,price,location) VALUES(?,?,?,?,?)");
    $stmt->bind_param("sisis", $image_url,$trader_id,$product_type,$price,$location);
Dharman
  • 30,962
  • 25
  • 85
  • 135
  • 4
    Short answer: The call to `prepare()` is failing (and returning `false`). Check for SQL errors after preparing and before trying to use the result. – David Jun 20 '16 at 13:16

0 Answers0