Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: DBI Substring index query and passing value

by Anonymous Monk
on Dec 11, 2012 at 09:29 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1008249]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-04-16 07:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found