Python Forum

Full Version: how to use items combobox in table name sqlite in python
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello
I'm developing a small application to manage my student class with python and sqlite3. I put the list of names of my classes in a combobox I retrieve the selected class in a variable but I cannot insert this variable in a sqlite3 request:
cursor.execute ("INSERT INTO mavariable ('Note', 'First name', 'Name', 'Number') VALUES (?,?,?,?)", (Number, First name, Name, Note))
thanks for the help
Please, show supporting code