Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: DBI Substring index query and passing value

by Anonymous Monk
on Dec 11, 2012 at 09:29 UTC ( #1008249=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $sql = sprintf("... where CustomField = ? and Name like %s", $dbh->
    +quote($name . '%'));
    $agent1 = $dbh->prepare($sql) || die $DBI::errstr;
    ...
    $Agent1->execute(291)  || die $DBI::errstr ;
    
    ( $phone_no,$mail )= $Agent1->fetchrow_array or die "no results :(";
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2015-07-05 09:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (61 votes), past polls