Call to a member function bind_param() on a non-object [duplicate]

Well, one reason prepare() can fail is if the sql statement sent to it is not valid in the current DB.

prepare() will then return false.

Eg – if the table name is not correct or one or more field in the query does not exist.

Leave a Comment