in reply to perl mysql question
Any level of chasing quotes and doublequotes and escape sequences will just backfire eventually. Do it right from the start.
Compare:
$dbh->do("INSERT INTO body (Body) Values('$body')");
(Actual syntax is not tested. (Thanks, tinita.))$dbh->do("INSERT INTO body (Body) Values (?)", $body);
--
[ e d @ h a l l e y . c c ]
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: perl mysql question
by tinita (Parson) on Nov 06, 2005 at 00:47 UTC | |
Re^2: perl mysql question
by pg (Canon) on Nov 06, 2005 at 02:45 UTC | |
by Thilosophy (Curate) on Nov 06, 2005 at 07:00 UTC |