heezy has asked for the wisdom of the Perl Monks concerning the following question:
Hi
Here's the thing... I have a lovely simple procedure...
sub insertAttribute{ my ($serverID, $featureID, $value) = @_; my $sqlINS = qq{ INSERT INTO attribute VALUES ("$serverID", "$feat +ureID", "$value") }; $dbh->do ($sqlINS); }
It works fine providing that $value does not contain any quotes " " " " So...
Dynamic System Domains
...works fine but...
Rack-optimized 30" deep design
...doesn't becuase of the quote messing things up
How can I overcome this problem, I'm sure it must be quite a common thing just I've never encountered before.
Thanks in advance,
M
|
|---|