I'm trying to create a rating/feedback system for each page of content in my app.
On each page I have a slider UI element and a Submit Rating button. I'd like each user/visitor to that page to select a rating on the slider (0-5) and when s/he clicks Submit Rating, the value of the slider gets stored in a variable "contentPg1". I'd like to have a database on the backend with a column that includes the name of the variable and another column that includes its value. I'd like this data to update each time a user submits feedback. If the same user updates the feedback, the already created row (entry) in the database would get updated, but if a new user provides feedback, a new row is added. Is this possible? If so, how would I get this done? Here's a screenshot of how the rating panel looks like: