New to flask/coding here and am looking for a simple command for how to update a cell value in a table-like database (a row and column value). The column values are letters, and the row values are (string) numbers [i.e: one, two, three, NOT 1, 2, 3]. I'm trying to change the value of a specific depending on user input from a form. Can someone help me out in explaining why this line of code doesn't work?
db.execute("UPDATE table SET" + user_input_letter + " = 1 WHERE " + user-input_number + " = one")
I should also clarify that the values on the table are just integers (0,1,2,3,....).