in reply to Modifying Perl script to write to MySQL??
$sth=$dbh->prepare($guestbookreal); $sth->execute();
However, it is better if you use placeholders and put all your parameters as an argument of execute. That way all necessary quoting is done by the DBI/DBD.
And of course, you would also like to do some error checking, so you are sure the data made it into your database.
CountZero
"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Modifying Perl script to write to MySQL??
by Anonymous Monk on Feb 15, 2004 at 01:00 UTC | |
by davorg (Chancellor) on Feb 15, 2004 at 08:15 UTC | |
by CountZero (Bishop) on Feb 15, 2004 at 16:25 UTC | |
by bobafifi (Beadle) on Feb 16, 2004 at 00:50 UTC | |
by CountZero (Bishop) on Feb 16, 2004 at 06:41 UTC | |
by bobafifi (Beadle) on Feb 16, 2004 at 15:27 UTC | |
| |
by bobafifi (Beadle) on Feb 15, 2004 at 23:25 UTC |