Perl Monk, Perl Meditation | |
PerlMonks |
Re: Quote mark in string messing up mySQL INSERTby htoug (Deacon) |
on Dec 12, 2002 at 11:19 UTC ( [id://219282]=note: print w/replies, xml ) | Need Help?? |
Either placeholders or use the quote function in DBI. I would recode your example thus (completely untested and with no warranty): Remember: $dbh->quote(expression) is your friend.
In Section
Seekers of Perl Wisdom
|
|