Thank you: i have find in your code a good suggestion...
The tutorial is very good but this is trying to do the second part which is the update, but I don't know why you have a function called get_product_versions and how it works, since I am trying to adapt your code to my need, which is a table of a list of hotels without any kind of foreign key my table is called CC_HOTELES but I can't do the update