in reply to MySQL and Perl - Shorthand
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: MySQL and Perl - Shorthand
by broquaint (Abbot) on Sep 21, 2002 at 13:06 UTC |