Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2020
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. def database():
  2.     name = firstname.get()
  3.     surname1 = surname.get()
  4.     username1 = registerUsername.get()
  5.     password1 = newPassword.get()
  6.  
  7.     conn = sqlite3.connect('Timetable.db')
  8.     with conn:
  9.         cursor=conn.cursor()
  10.     cursor.execute('INSERT INTO StudentInformation (studentID, username, firstname, surname, password) VALUES(?,?,?,?)', (studentID, registerUsername,firstname,surname,newPassword))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement