This has nothing to do with placeholders. Try one of the following:
$sth->execute( $id ) or err_trap; while ( my $row = $sth->fetchrow_arrayref ) { print "Email is: $row->[0]\n"; } $sth->execute( $id ) or err_trap; while ( my ( $email ) = $sth->fetchrow_array ) { print "Email is: $email\n"; } $sth->execute( $id ) or err_trap; my ( $email ); $sth->bind_columns( \$email ); while ( $sth->fetch ) { print "Email is: $email\n"; }
Chris
M-x auto-bs-mode
In reply to Re: Returning the value of a placeholder with select
by lachoy
in thread Returning the value of a placeholder with select
by sdyates
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |