Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: DBI, place holders and CGI forms (column names)

by tye (Sage)
on Jun 02, 2011 at 17:11 UTC ( [id://907851]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $colname= 'city';
    my $value=   'Toledo';
    
  2. or download this
    select * from mytable where city = 'Toledo';
    
  3. or download this
    my $sth= $dbh->prepare("select * from mytable where ? = ?");
    ... $sth->execute( $colname, $value );
    
  4. or download this
    select * from mytable where 'city' = 'Toledo';
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-03-19 07:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found