in reply to perl dbi problem1
Instead, it's probably better to use placeholders for this case--DBI will automagically escape any quotes in the values that you pass to protect from this problem.
my $sth3 = $dbh->prepare( q( UPDATE league SET played=?, won=?, fr=?, ag=?, points=? WHERE year=?, sport=?, group=? ) ) or die DBI->errstr; $sth3->execute( $playeda, $wona, $fora, $againsta, $pointsa, $thisyear, $sport, $group ) or die DBI->errstr;
|
|---|