On Tue, Oct 13, 2015 at 10:44 AM, Manpreet Dhiman
<
manpre...@gmail.com> wrote:
>> You can add
>> cgitb.enable()
>> to CGI script to see the errors.
>
> cgitb.enable() shows errors for tags that are not used by me.
My problem is solved yesterday. I add cgitb.enable for seeing errors
on browser. Now, script sends values from form into database just by
changing syntax of insert statement. When I use
sql ="INSERT INTO new(FN, LN, AGE, INCOME,GENDER) VALUES (%s, %s, %s,
%s, %s )"
cursor.execute(sql,(fname,lname,age,income,gender))
It solved problem. But I am little bit confused that how changed
syntax can solve problem. Because both syntax are correct.