mysqli why does this happens?

前端 未结 3 2057
心在旅途
心在旅途 2021-01-29 03:29

I have two subsequent mysqli statements, and the second returns:

Fatal error: Call to a member function bind_param() on a non-object in ...

3条回答
  •  死守一世寂寞
    2021-01-29 03:54

    Check the return value of mysqli::prepare. If it is FALSE, you should get the details for the occured error with mysqli::error.

提交回复
热议问题