in reply to Re^4: DBI search for forward slash
in thread DBI search for forward slash
my $R2 = qq{ SELECT * FROM `test` WHERE `string`=?}; my $sR2 = $dbh->prepare($R2); my $row2 = $sR2->execute();
You forgot to pass $string to ->execute as a value for the placeholder. $sR2->execute($string); works as expected.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: DBI search for forward slash
by luxs (Beadle) on Nov 08, 2020 at 08:43 UTC | |
by haukex (Archbishop) on Nov 08, 2020 at 08:46 UTC |
In Section
Seekers of Perl Wisdom