I am trying to create a Login Window (tkinter), and I am trying to get the inputs in a SQL DataBase Table.
I am getting an error at this code, I am also trying to see wether the inputs are already in the table or no:
def check (username, password):
cursor.execute("SELECT COUNT(*) FROM Users WHERE username = :username and password = :password", username=username, password=password)
This is how I am calling the function:
def checkLogin():
name = name_var.get()
password = passw_var.get()
connectiontosql.check(name, password)
Note: connectiontosql is another module, created by me.
I have little to no knowledge in SQL, google didn't help too much, sorry if it's dead easy.