intranetman has asked for the wisdom of the Perl Monks concerning the following question:
if($checked_feedback =~ m/[']/g) { $checked_feedback =~ tr/'/_/; } $statement = "INSERT INTO Posts(subject,id,heading,body,date,time,appr +oved) VALUES ('$subject','$ids','$post_title','$checked_feedback',CUR +DATE(),CURTIME(),1)"; $insert = $db->prepare($statement) or die "Couldn't prepare the query: +", $rv = $insert->execute or die "Order insert failed: ", $insert-> +finish();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: No apostrophe Insert into MySQL
by Aristotle (Chancellor) on Oct 31, 2005 at 20:45 UTC | |
|
Re: No apostrophe Insert into MySQL
by Roy Johnson (Monsignor) on Oct 31, 2005 at 21:01 UTC | |
by Codon (Friar) on Oct 31, 2005 at 21:16 UTC | |
by Aristotle (Chancellor) on Oct 31, 2005 at 21:30 UTC | |
|
Re: No apostrophe Insert into MySQL
by stonecolddevin (Parson) on Oct 31, 2005 at 21:39 UTC | |
by intranetman (Acolyte) on Nov 01, 2005 at 16:37 UTC |