Re: [Tutor] mod_python & mysqldb problem

2006-02-23 Thread Patty
> > That's great news! Does the whole thing work now, including the > integration with mod_python? Hi Danny, Yes, everything works now. The problem was the mysqldb copy I had. I also noticed that i had made a mistake by writting > db.commit() > db.close() instead of: conn.comm

Re: [Tutor] mod_python & mysqldb problem

2006-02-23 Thread Danny Yoo
> I downloaded the latest version of mysqldb and my code worked. btw, I > changed it to %s instead of %d. Hi Patty, That's great news! Does the whole thing work now, including the integration with mod_python? I'm following up and making sure that the problem was simply the stale copy of MySQL

Re: [Tutor] mod_python & mysqldb problem

2006-02-23 Thread Patty
Hi Danny, I downloaded the latest version of mysqldb and my code worked. btw, I changed it to %s instead of %d. Thanks! Patty ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] mod_python & mysqldb problem

2006-02-23 Thread Danny Yoo
On Thu, 23 Feb 2006, Patty wrote: > def addpercent(mp, lp): > conn = MySQLdb.connect(host = "localhost", user = "root", passwd = > "",db ="my_db") > cursor = conn.cursor() > cursor.execute (""" > UPDATE targets > SET mario_percent = %d, lizard_