public function inserirCliente() { ConexaoBD::conexao(); $sql = "INSERT INTO `locadora`.`cliente` (`Nome`, `Endereco`, `Telefone`, `Email`, `Cep`, `Nascimento`) \nVALUES ('{$this->nome}', '{$this->endereco}', '{$this->telefone}', '{$this->email}', '{$this->cep}', '{$this->nascimento}');"; ConexaoBD::inserirBanco($sql); }
public function inserirFilmes() { ConexaoBD::conexao(); $sql = "INSERT INTO `locadora`.`filme` (`Titulo`, `Genero`, `Estoque`, `Midia`, `Status`) \nVALUES ('{$this->titulo}', '{$this->genero}', '{$this->estoque}', '{$this->midia}', '{$this->status}');"; ConexaoBD::inserirBanco($sql); }
public function inserirUsuario() { $sql = "INSERT INTO `locadora`.`usuario` (`nome`, `senha`) \r\n VALUES ('{$this->login}', '{$this->senha}');"; ConexaoBD::inserirBanco($sql); }