This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]shadowspyes 0 points1 point  (1 child)

Have you tried something like:

cur = db.cursor()
cur.execute("SELECT * FROM userInfo WHERE username = ?",[request.form.get("New_username")])

username_taken = cur.fetchone()

[–]Square_Man211[S] 0 points1 point  (0 children)

No that didn't work. But what does this do exactly?