On Thu, 6 Jul 2000, 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
> >
> 
> 

Hi,

AFAIK DBI's bind_param method should call DBI::quote on its arguments. 
However, I'm not sure whether you can use 'prepare' for
non-SELECT-statements; have you tried 

$sth->do('INSERT ... VALUES(?)', undef, $phrase) 

instead?

Maybe you should give the dbi-users mailing list ([EMAIL PROTECTED]) 
a try.

HTH,
        Michael.

________________________________________________________
Michael   |  email: [EMAIL PROTECTED] 
Hanisch   |                                            
________________________________________________________


Reply via email to