perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From drf...@smartt.com
Subject Re: error DBI with quote
Date Thu, 06 Jul 2000 22:51:02 GMT
Jesús Lasso Sánchez wrote:
> 
> Hi,
> 
>    I probed:
> 
>           s/'/''/g
> 
>    yesterday but it did'nt work, will try with HTML code. I think is the
> solution.
> 
> Thanks
> 
> > the easiest way is
> > s/'/''/g
> > or
> > s/'/'/g
> >


the way i do it is

my $q=new CGI;
$var=$q->param('var');

$var=s/'/''/g;


btw: this code is off the top of my head

Mime
View raw message