@Goyo
If in the above drop down if an user select Failed to understand customer issue due to poor listening skillsClearly did not listen as missed important information it should display as below
As the number of option user selects those many options should be captured in the database by comma separated
The SQL insert has only one ‘slot’ for values and you’re trying to insert multiple values. Presumably one new row per value is what you want. So you should iterate over the selections list and run an insert per selection. Or, do it all in one go as documented here.
Of course, option1 is a list of four elements and the parentheses around it do nothing, so indeed you are passing four values to an operation with only one parameter. Try str(option1) instead.
cursor.execute(
"INSERT INTO solvertest ([Reason for ‘We demonstrated listening’ being No]) Values(?)",
(str(option1),)
)