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!";
}