Now to your problem:
You have to join your column names like this:
my $row = $dbh->selectall_arrayref('select ' . join(',', @selector) . " from people where (fornavn like '%$search%') or (efternavn like '%$s +earch%') or (cpr LIKE '%$search%')",\ %attr);
In reply to Re: sql select with array
by busunsl
in thread sql select with array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |