I have reduced it from what it was before. Now I am trying to update one thing in a database. here is the function in the first file that executes the second one that is in another file
def UpdateItem(self):
name1 = self.ItemIDLabelLineEdit.text()
name8 = self.ItemNameLineEdit.text()
print(name1)
print(name8)
SqlData.ItemUpdate(self, name1, name8)
here is the second function that is in another file
def ItemUpdate(self, name1, name8):
db= sqlite3.connect("SQLite database")
cursor=db.cursor()
print("HEy")
print(name1)
print(name8)
cursor.execute("""UPDATE Items_Table SET Item_Name = """+name8+""" WHERE Item_ID = """+name1+""" """)
when I run the python code it says the error is the value for name8 doesn't have a column. I can't see the error inside the cursor.execute statement. if you can help thank you