I'm trying to add new values to the MySQL database table, but there is always an error. I am new to python programming so I don't really know how all of this works. the photo of the error is below.
def add_new():
eq_name = t1.get()
total2 = t2.get()
query = "INSERT INTO Equipment(equipmentID, name, available, borrowed, total) VALUES(NULL, %s, %s, %s, %s, NOW())"
cursor.execute(query, (eq_name, total2, 0, total2 ))
clear()

tkinterso please remove that tag