LordLerkista has asked for the wisdom of the Perl Monks concerning the following question:
my $query = $conn->prepare("SELECT id, name FROM datos ORDER BY id +"); $query->execute(); while (@row = $query->fetchrow_array) { ($id, $name) = @row; $item = new_item($id, $name); if ($item eq '') { fatal("new_item($id, $name) failed: $item"); } push @il, $item; push @pack, ${$item}; } push @pack, 0; $menu = new_menu(pack "I*", @pack);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Making a Menu with a Database Query
by TGI (Parson) on Jul 26, 2003 at 03:19 UTC | |
|
Re: Making a Menu with a Database Query
by skyknight (Hermit) on Jul 26, 2003 at 00:25 UTC |