call to a member function execute() on a non-object

前端 未结 4 2120
北荒
北荒 2020-12-11 20:28

My script containing that error is this:

$stmt = $this->db->prepare(\'SELECT libelle,activite,adresse,tel,lat,lng FROM etablissements where type IN (\'         


        
4条回答
  •  天命终不由人
    2020-12-11 21:16

    Your db object is null. Check if you close the connection too early or somehow you override it to null.

提交回复
热议问题