Jun-09-2020, 05:45 AM
(This post was last modified: Jun-09-2020, 05:50 AM by card51shor.)
db.execute("INSERT INTO users (username, password) VALUES (:username, :password)", {"username":username, "password":password})
What should this be then? I can't figure it out with the documentation u sent. Before it used to give me a syntax error before i corrected it now I'm not getting an error but the values are NULL still.
Tried this:
db.execute("INSERT INTO users (username, password) VALUES (%s, %s)", ("username", "password",))
Now I get an error when I click the register button:
AttributeError: 'tuple' object has no attribute 'keys'
What should this be then? I can't figure it out with the documentation u sent. Before it used to give me a syntax error before i corrected it now I'm not getting an error but the values are NULL still.
Tried this:
db.execute("INSERT INTO users (username, password) VALUES (%s, %s)", ("username", "password",))
Now I get an error when I click the register button:
AttributeError: 'tuple' object has no attribute 'keys'