in reply to MySQL Data Insertion Errors w/ Perl
When you point out line 246, the first thing that I noticed is that this piece of code that you've downloaded does not use SQL placeholders. Read more about SQL placeholders.
Since this script uses DBI, the DBI module should take care of the single-quote problem that you explain.
Also, since you state that you are "not very adept at Perl", I have a suggestion for you. First would be to stop using this script in favor of one that has better security (lack of SQL placeholders is considered a high security risk if end users are allowed to enter values that are going into the SQL. Super Search or Google on "SQL injection attack". Alternately, you can get more adept at Perl -- or hire someone who already is -- if you're set on continuing usage of this script.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: MySQL Data Insertion Errors w/ Perl
by ingsoc747 (Acolyte) on Nov 19, 2004 at 16:43 UTC | |
by DrHyde (Prior) on Nov 22, 2004 at 09:47 UTC |