Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def validateLogin():
- global username
- global password
- username_text = username.get()
- password_text = password.get()
- with sqlite3.connect("Timetable.db") as db:
- cursor = db.cursor()
- find_user = ("SELECT * FROM StudentInformation WHERE username = ? AND password = ?")
- cursor.execute(find_user,[(username_text),(password_text)])
- results = cursor.fetchall()
- if results:
- success()
- else:
- notFound()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement