in reply to sql select with array
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);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: sql select with array
by Ranna (Acolyte) on Oct 23, 2001 at 07:41 UTC | |
by busunsl (Vicar) on Oct 23, 2001 at 10:09 UTC |