Perl Monk, Perl Meditation | |
PerlMonks |
perl mysql questionby rhxk (Beadle) |
on Nov 05, 2005 at 23:31 UTC ( [id://506037]=perlquestion: print w/replies, xml ) | Need Help?? |
rhxk has asked for the wisdom of the Perl Monks concerning the following question:
Hi, OK, what I want to do is put some text into mysql table. But, I get a problem where if there's a single quote in my $body, then the sql syntax complains. Here's my code. If my $body or $subject has the following This is a 'test' Then it complains....which can be understandable that there's a single quote in my sql cmd. any suggestions?
Back to
Seekers of Perl Wisdom
|
|