Code:
def on_button1_clicked(self, widget, data=None):
con = MySQLdb.connect('localhost', 'root', 'warriors', 'reg');
with con:
cur = con.cursor()
sql_st="INSERT INTO regg (username, password) VALUES ('ra','%s')"
cur.execute(sql_st)
print "It has been inserted successfully "
here the values ra and %s is only inserting in database,but i need a coding for insert statement where the user types in gui application and click insert option tht data only should update..
Comment