MCPM: Re: escaping quotes

Stephen Walker swalker at walkertek.com
Thu Oct 24 11:51:47 CDT 2002


using DBI?

use $dbh->quote

otherwise you can take a look at DBI::quote and use their code to do what
you need.

HTH
Steve

----- Original Message -----
From: "Andy Murren" <andy at murren.org>
To: <morriscounty at pm.org>
Sent: Thursday, October 24, 2002 12:12 PM
Subject: MCPM: escaping quotes


>
> Hey gang,
>
> I seem to have done something wrong and can use some advice.
>
> I have a form that the users can enter text into then text gets
> inserted into the database.
>
> I have one user that insists on quoting parts of his remarks, which is
> causing problems when I try to insert my quoted text into the
> database.
>
> What methods are you using to escape or cleanse quotes from user
> input?
>
> Andy
>
> --
> Andy Murren
> andy at murren.org
>




More information about the morriscounty-pm mailing list