public function update(ProdutoVO $value) { $sql = "UPDATE produtos SET nome = ?, marca = ?, preco = ? WHERE id = ?"; $db = new DB(); $db->getConnection(); $db->execSQL($sql); $sttm = $db->execSQL($sql); $sttm->bind_param("s", $value->getNome()); $sttm->bind_param("s", $value->getMarca()); $sttm->bind_param("s", $value->getPreco()); $sttm->bind_param("i", $value->getId()); if ($sttm->execute()) { return true; } }