What you want is:
but if you ever want to know another id, you're better off with:my ($the_name) = $dbh->selectrow_array( "SELECT the_name FROM the_table WHERE id=3");
$sth = $db->prepare("SELECT the_name FROM the_table WHERE id=?"); $sth->execute(3); my ($the_name) = $sth->fetchrow_array;
After Compline,
Zaxo
In reply to Re: MySQL and Perl - Shorthand
by Zaxo
in thread MySQL and Perl - Shorthand
by mt2k
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |