0
I am trying to register my customer address and he gives the following message:
Uncaught Error: Call to a member function prepare() on null in
I have no idea what it might be, I query it this way:
$this->Conexao->prepare($sql)->execute()
According to this error it seems to me that it is considering my variable $sql as null, but I asked to write it on the screen and it is normal. Even because I before happening the registration that is giving this error php makes another before.
hi, your connection is not valid, view user, password ip, bank. See in the code if you are not doing some assignment on a local variable instead of the property
Conexao
– rray
It seems that the problem is in$this->Connected, put your whole class for us to see
– Guerra