Another MySQL Images Question

Karl-Heinz Ruskowski kayvoo at googlemail.com
Fri Apr 18 21:46:54 EDT 2008


Hi, 

>       cursor.execute('update products set pic1="%s" where id="%s", ;',
> (pic1, id))

Shouldn't it be something like 
cursor.execute('update products set pic1="%s" where id="%s", ;' % (pic1, id))

-- 
GPG key: 0x04B3BB96
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20080419/9d06b2cf/attachment-0001.sig>


More information about the Python-list mailing list