[mod_python] Very frustrating problem... MySQL UPDATE syntax

Robert Brewer fumanchu at amor.org
Mon Nov 8 00:34:50 EST 2004

Robert Geller wrote:
> db_connect.db_query_update("UPDATE users SET fname='%s',
> email='%s' WHERE id = '%s'" % (name, email, id))

First guess: where does this "id" value come from and why is it in
single quotes when none of the others are?

Robert Brewer
Amor Ministries
fumanchu at amor.org

More information about the Mod_python mailing list