Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^5: DBI search for forward slash

by haukex (Bishop)
on Nov 08, 2020 at 08:34 UTC ( #11123495=note: print w/replies, xml ) Need Help??


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
    yes i've spot this typo. It is working like that now But really, I'm trying to understand when is my problem now. my old code, with table, produced via phpMyAdmin not working. yes, i've check and it is clear for me now - my foreigner table has spaces in the string which was not easy to spot, but spaces are still counting in exact match.... Oh again silly error.... Feel really sorry for this realyl stupid question
      Oh again silly error.... Feel really sorry for this realyl stupid question

      Don't worry, we all have moments like that! I hope you now see the value of a representative SSCCE :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11123495]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2021-05-19 01:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (186 votes). Check out past polls.

    Notices?