Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Python (http://www.velocityreviews.com/forums/f43-python.html)
-   -   Re: MySQLdb insert HTML code error (http://www.velocityreviews.com/forums/t955343-re-mysqldb-insert-html-code-error.html)

Anatoli Hristov 12-11-2012 01:05 AM

Re: MySQLdb insert HTML code error
 
> You're using a parametrised query (which is good :-)), but you've included
> quotes around the placeholders. There's no need to do that. They'll be
> quoted automatically when necessary:
>
> sql = "INSERT INTO product_description (product_id, language_id, name,
> description) VALUES (%s,%s,%s,%s)"


Thanks a lot it woooorks. I was looking in the wrong direction (escape
str. raw etc) Thanks again :-)


All times are GMT. The time now is 05:39 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.