I have a function attached to a button\'s on click event, this click needs to update a field in the db.
I can get it to work but I get a warning message.