title: sqlite3.InterfaceError: Error binding parameter 0 - probably unsupported type. - login page
body: <p>I trying to make a login page and have approached this error. I am at the moment working on making the program check a database file for the user ID that they created so they can be logged in but I get this error:</p>
  
  <blockquote>
    <p>sqlite3.InterfaceError: Error binding parameter 0 - probably unsupported type. </p>
  </blockquote>
  
  <p>I can't seem to get it to work after a few hours so I have come here for help.</p>
  
  <p>The function that is causing the problem is: <code>login_verify()</code>
  The line that is causing the error has been marked with a comment 
  The code that is shown is only the snippet with the error.</p>
  
  <p><strong>Picture of the error:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/bfWna.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bfWna.png" alt="enter image description here"></a></p>
  
  <p><strong>Picture of the database:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/ZNHVb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZNHVb.png" alt="enter image description here"></a></p>
  
  <pre><code>from tkinter import *
  import sqlite3
  
  def login_verify(): 
  
     global ID
  
     with sqlite3.connect('Form.db')as db:
  
        cursor=db.cursor()
        finduser=('SELECT * FROM Users WHERE ID = ?')
        cursor.execute(finduser,(ID,)) #line causing error
  
  
     if cursor.fetchall():
        print('hello')
  
     else:
        print('test')
  
  
  def database():
  
     name1=Fullname.get()
     email=Email.get()
     gender=Gender.get()
     country=c.get()
  
     iD=ID.get()
  
     conn = sqlite3.connect('Form.db')
  
     with conn:
        cursor=conn.cursor()
     cursor.execute('CREATE TABLE IF NOT EXISTS Users (Fullname TEXT,Email TEXT,Gender TEXT,country TEXT, ID TEXT)')
     cursor.execute('INSERT INTO Users (FullName,Email,Gender,country,ID) VALUES(?,?,?,?,?)',(name1,email,gender,country,iD))
     conn.commit()
  </code></pre>