in reply to Use DBI to select and return multiple database entries
Is 'domain', and 'path' in the list? Is it properly upper/lower cased? Do you need to set FetchHashKeyName on the handle?my $sql = "select * from Directory"; my $sth = $dbh->prepare($sql); $dbh->execute(); print "$_\n" for @{$sth->{NAME}};
BTW, with RaiseError set, the whole "if (!$sth) {...}" block you have is useless.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Use DBI to select and return multiple database entries
by jayto (Acolyte) on Jul 16, 2012 at 19:44 UTC |