Path: csiph.com!usenet.pasdenom.info!goblin2!goblin.stu.neva.ru!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'happen,': 0.07; 'subject:code': 0.07; 'python': 0.09; 'indication': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:error': 0.11; 'digest': 0.15; 'definition.': 0.16; 'perfect.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'sadly': 0.16; 'wrote:': 0.17; 'code,': 0.18; 'code.': 0.20; 'os,': 0.22; "i'd": 0.22; 'insert': 0.23; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.28; 'ball': 0.29; 'usually': 0.30; 'version,': 0.30; 'function': 0.30; 'expect': 0.31; 'code': 0.31; 'from:addr:yahoo.co.uk': 0.32; 'problem': 0.33; 'to:addr:python- list': 0.33; 'thanks': 0.34; 'received:org': 0.36; 'except': 0.36; 'but': 0.36; 'url:org': 0.36; 'anything': 0.36; 'enough': 0.36; 'subject:: ': 0.38; 'mark': 0.38; 'to:addr:python.org': 0.39; 'release': 0.39; 'header:Received:5': 0.40; 'help': 0.40; 'think': 0.40; 'your': 0.60; "you've": 0.61; 'kind': 0.61; 'assistance': 0.63; 'repairs': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: MySQLdb insert HTML code error Date: Tue, 11 Dec 2012 00:38:21 +0000 References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-92-18-13-73.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: X-Antivirus: avast! (VPS 121210-0, 10/12/2012), Outbound message X-Antivirus-Status: Clean X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1355186151 news.xs4all.nl 6982 [2001:888:2000:d::a6]:33795 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:34589 On 11/12/2012 00:29, Anatoli Hristov wrote: >> As much use as a chocolate teapot, all you've given is a function/method >> definition. No indication of your OS, Python version, calling code, what >> you expect to happen, what actually happened, apart from that your request >> for assistance is perfect. Usually I'd be able to help but sadly my crystal >> ball is in for repairs at the moment. Would you please be kind enough to >> elucidate. > > Thanks for your answer, the OS is CentOS release 5.7. MySQL - 5.0.96 > As I said the function is working right, except when I insert an HTML code. > > Thanks > Brilliant, I think your problem is in line 97 of the code that you *HAVEN'T QUOTED*. Please go here, read and inwardly digest before you say anything else http://www.sscce.org/ -- Cheers. Mark Lawrence.