in reply to Placeholder Help!
All what you need is to use prepared statements
my $query = $dbh->prepare("select users from mytable where number = ? +and serie = ?"); $query->execute(100,450); while ( my $row = $query->fetchrow_hashref ) { print $row->{'users'}; }
I don't remember seeing an exec_select method in the DBI class (I might be wrong).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Placeholder Help!
by chromatic (Archbishop) on Jun 07, 2010 at 20:55 UTC |