Advertisement
Guest User

Untitled

a guest
Jan 28th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. sql_statement = '''SELECT name FROM users WHERE username = ? and password = ?''', (uname, password)
  2.  
  3. #print('About to execute the following SQL statement: n' + sql_statement)
  4. print(type(sql_statement))
  5.  
  6. cursor.execute(sql_statement) # Execute the SQL statement we created
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement