>
> 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
> 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
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
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_