jim smiley
asked on
python bottle todo tutorail I added more fieldsimport sqlite3 from bottle import route, run, debug, template, request, static_file, error import pdb gangid = 1 print('start gangmember') @route('/')
Traceback (most recent call last):
File "C:\Python27zzz\projects\g angmember\ bottle.py" , line 997, in _handle
out = route.call(**args)
File "C:\Python27zzz\projects\g angmember\ bottle.py" , line 2000, in wrapper
rv = callback(*a, **ka)
File "gangmember.py", line 57, in new_member
c.execute("INSERT INTO gangmember (lastname, firstname, birthdate, deathdate, address, city, state, zipcode, father, mother, status, gangname) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)" )
ProgrammingError: Incorrect number of bindings supplied. The current statement uses 12, and there are 0 supplied.
File "C:\Python27zzz\projects\g
out = route.call(**args)
File "C:\Python27zzz\projects\g
rv = callback(*a, **ka)
File "gangmember.py", line 57, in new_member
c.execute("INSERT INTO gangmember (lastname, firstname, birthdate, deathdate, address, city, state, zipcode, father, mother, status, gangname) VALUES (?,?,?,?,?,?,?,?,?,?,?,?)"
ProgrammingError: Incorrect number of bindings supplied. The current statement uses 12, and there are 0 supplied.
ASKER
i ttached my program source code. i entered the error that pointed to line 57. I did not attach the creation db code program
init-dbmember.py
init-dbmember.py
ASKER
when it says attach file, i uploaded the file. Does that mean what it saya??
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
I guess, that you forgot to pass the parameters (the values) to your query.