When trying to insert something in the database with mysqli of boolen error

0

Show this error:

Uncaught Error: Call to a member function bind_param() on boolean in /opt/lampp/htdocs/sala/class/Config.class.php:35

In my file it looks like this:

public function Cadastrar(string $nick,string $senha,string $status, int $online_status) {
            $this->Query = $this->Conexao->prepare("INSERT INTO usuarios (nick,senha,sexo,status,online_status) VALUES (?,?,?,?)");
            $this->Query->bind_param("sssi",$nick,$senha,$status,$online_status);
            $this->Query->execute();
            return "Registrado com sucesso!";
        }
    
asked by anonymous 01.08.2016 / 03:48

0 answers