in reply to Re^5: using template on same page
in thread using template on same page
i tried that bt the problem i get repeated output like
FOO FOO BAR BAR MOO MOO
i changed my code from
my $select = $DBH->prepare("SELECT FOO, BAR, MOO FROM tble WHERE CONCA +T(FOO, ', ', BAR, ', ', MOO) LIKE ?"); $select->execute('%'.$info.'%'); $names = $select->fetchall_arrayref(); foreach $names ( @$names) { ($variable1, $variable2, $variable3) = @$names; } }
to this
my $select = $DBH->prepare("SELECT FOO, BAR, MOO FROM tble WHERE CONCA +T(FOO, ', ', BAR, ', ', MOO) LIKE ?"); $select->execute('%'.$info.'%'); $names = $select->fetchrow_arrayref(); ($variable1, $variable2, $variable3) = @$names; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: using template on same page
by poj (Abbot) on Sep 16, 2018 at 19:24 UTC | |
by bigup401 (Pilgrim) on Sep 17, 2018 at 16:05 UTC | |
by poj (Abbot) on Sep 17, 2018 at 17:09 UTC | |
by bigup401 (Pilgrim) on Sep 17, 2018 at 17:24 UTC |