Boa tarde!
O que está errado nesse código, da erro na hora de inserir.
class ClassCadastro extends ClassConexao{
private $Db;
#Cadastrará os clientes no sistema
protected function cadastroClientes($Nome, $Sexo, $Cidade)
{
$id=0;
$this->Db=$this->conexaoDB()->prepare("insert into teste values (:id, :nome, :sexo, :cidade");
$this->Db->bindParam(":id",$id,\PDO::PARAM_INT);
$this->Db->bindParam(":nome",$Nome,\PDO::PARAM_STR);
$this->Db->bindParam(":sexo",$Sexo,\PDO::PARAM_STR);
$this->Db->bindParam(":cidade",$Cidade,\PDO::PARAM_STR);
$this->Db->execute();
}
}