List:General Discussion« Previous MessageNext Message »
From:Vivek Khera Date:March 20 2000 5:40pm
Subject:Re: Escaping quotes
View as plain text  
>>>>> "JD" == James Donnelly <james@stripped> writes:


JD> Is it possible to escape quotes when putting text fields into mysql?

Yes.

JD> Eg: 
JD> 	insert into table values ("$field_1", "$field_2")

JD> where $field_1 is a perl variable containing quotes.

What's wrong with the functions provided in Perl's DBI to do just
that?  Hint:  "perldoc DBI" and seatch for "quote".
Thread
Escaping quotesJames Donnelly20 Mar
  • Re: Escaping quotesVivek Khera20 Mar