Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: MySQLdb insert HTML code error

Reply
Thread Tools

Re: MySQLdb insert HTML code error

 
 
Anatoli Hristov
Guest
Posts: n/a
 
      12-11-2012
> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: MySQLdb insert HTML code error Mark Lawrence Python 0 12-11-2012 12:38 AM
Re: MySQLdb insert HTML code error Anatoli Hristov Python 0 12-11-2012 12:31 AM
Re: MySQLdb insert HTML code error Anatoli Hristov Python 0 12-11-2012 12:29 AM
Re: MySQLdb insert HTML code error Mark Lawrence Python 0 12-11-2012 12:22 AM
MySQLdb insert HTML code error Anatoli Hristov Python 0 12-11-2012 12:04 AM



Advertisments