On Wed, 30 May 2001, Paul Fontenot wrote:

> I am getting this error and I know what is causing it, but I have no idea
> how to fix it, any help would be great. The script steps through the
> /var/log/messages file on a linux server and puts
> The entries into a mysql database. However when it gets to the 'hlt' line in
> the messages file it just barfs. The single quotes are freaking it out. I
> know about quotes but not how to use in
> this situation.

Use the placeholders ? in the prepare statement and pass the variables
with execute statement as described in the documentation

Regards herbie

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Herbert Liechti                     E-Mail: [EMAIL PROTECTED]
ThinX networked business services       Adlergasse 5, 4500 Solothurn
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Reply via email to