Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^5: DBI search for forward slash

by haukex (Archbishop)
on Nov 08, 2020 at 08:34 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11123495]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-04-16 18:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found