Answer the question
In order to leave comments, you need to log in
python sqlite3 error, why?
I add a new row to the database like this:
connection = sqlite3.connect('database.sqlite')
q = connection.cursor()
q.execute("INSERT INTO users (id,name,deposit,balans,cbc_balans,cbc_bal,ref,ref_colvo,ref_colvo2,ref_colvo3,ref_earn,aktiv) VALUES ('%s', '%s', '%s', '%s', '%s','%s', '%s' '%s', '%s', '%s', '%s', '%s')"%(userid,username,'0','0','0','0',ref_url[7:],'0','0','0','0','0'))
connection.commit()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question