$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
In reply to Re: Modifying Perl script to write to MySQL??
by CountZero
in thread Modifying Perl script to write to MySQL??
by bobafifi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |