cdherold has asked for the wisdom of the Perl Monks concerning the following question:
Example $body scalar that would instigate a crash would be: "I don't care."$dsn = "DBI:mysql:database;localhost"; $dbh = DBI->connect($dsn,'user','password'); $sth = $dbh->prepare("INSERT INTO press_releases (time,date,ticker,hea +der,body) VALUES ('$time','$date','$ticker','$header','$body');");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(ar0n: use placeholders) Re: text entry into mysql using perl
by ar0n (Priest) on Apr 16, 2001 at 05:23 UTC | |
by cdherold (Monk) on Apr 16, 2001 at 05:45 UTC | |
by ar0n (Priest) on Apr 16, 2001 at 05:50 UTC | |
|
Re: text entry into mysql using perl
by petethered (Pilgrim) on Apr 16, 2001 at 10:29 UTC |