Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Answer: What are placeholders in DBI, and why would I want to use them?

by EvdB (Deacon)
on Nov 13, 2003 at 09:21 UTC ( #306745=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $query = $dbh->prepare
        ( "select id, name from user where name = ?" );
    $query->execute( $name_from_params );
    
  2. or download this
    my $query = $dbh->prepare
        ( "select id, name from user " .
          "where name = '$name_from_params'" );
    $query->execute();
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2021-08-02 00:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My primary motivation for participating at PerlMonks is: (Choices in context)








    Results (16 votes). Check out past polls.

    Notices?