Your SQL looks a bit odd. If you mean something like (SELECT item1, item2, item3 FROM basket) then:
$hashref = $sth->fetchrow_hashref;
does what you want with key field name and value......
cheers
tachyon
In reply to Re: Perl-MySQL get column names
by tachyon
in thread Perl-MySQL get column names
by kiat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |