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.
In reply to Re^5: DBI search for forward slash
by haukex
in thread DBI search for forward slash
by luxs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |