Click here to Skip to main content
15,896,201 members

Comments by Ruban Bharath (Top 14 by date)

Ruban Bharath 11-Oct-18 6:33am View    
why means i cannot get you?
Ruban Bharath 24-Aug-18 3:19am View    
Sorry sir ,yes sir results only for list and tuples but not for str it showed
Ruban Bharath 24-Aug-18 3:14am View    
I want to fetch the id of the quiz(quiz is a table with id,qname fields) from the front-end page and compare it with 1,2,3,4 and perform the function corresponding with condition


db = sqlite3.connect('db.sqlite3')
cursor = db.cursor()
quizid = request.GET.get('quizid')
cursor.execute('SELECT quizid,qname FROM music_quiz WHERE quizid = '+quizid)
data = cursor.fetchone()

but here i have a error like

can only concatenate str (not "NoneType") to str
Ruban Bharath 24-Aug-18 0:19am View    
okay sir but i have entered the value correctly only but it makes me a error.
Ruban Bharath 24-Aug-18 0:18am View    
Deleted
okay sir but i have defined correctly only based on this reference but also i got this err.