public function delete(produtoVo $value) { $sql = "DELETE FROM produtos WHERE id = ?"; $DB = new DB(); $DB->getConnection(); $pstm = $DB->execSQL($sql); $pstm->bind_param("s", $value->getNome()); $pstm->bind_param("s", $value->getMarca()); $pstm->bind_param("s", $value->getPreco()); $pstm->bind_param("i", $value->getId()); if ($pstm->execute()) { return true; } else { return false; } }