Insert user.id to database (code)

tried using this code on a dynamic page hoping it would fill the field in that repeater’s row in the database when the button on that container is pressed, but it didn’t work. Do you know how to code it into a repeater ?