Allright this one\'s got me baffled so I decided to see if I could find a response on here, I\'ve searched up and down and several stackoverflow questions and answers and nothin
You're calling cursor.fetchall() twice. You shouldn't be doing that.
Change:
row = cursor.fetchall()
results = len(cursor.fetchall())
clientName, clientAddr, unLocker = row[1], row[2], row[3]
To:
rows = cursor.fetchall()
results = len(rows)
if results > 0:
row = rows[0]
clientName, clientAddr, unLocker = row[1], row[2], row[3]
And while it doesn't have anything to do with your current problem, you should be using a parameterized query:
query = "SELECT * FROM sessionkeys WHERE clientName=?"
cursor.execute(query, (value1,))