≈ the.bay.news

Trying to insert to multiple tables from form with mysql

Discussions on Python.org
Trying to insert to multiple tables from form with mysql
So, I am trying to build an application that should, hopefully, get data from a tinker form and put that data into multiple tables in mysql. however, after I do one execute to save some of this data to the first table I get an error when trying to execute the second sql command in that the connection to the database is closed. My code goes to: except mysql.connector.Error as err: messagebox.showerror("Database Error", f"Error: {err}") finally: if 'conn' in locals() and conn.is...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.