Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
returning multiple records that match the $keyword's criteria.$sql_stmt = "select * from database where "; foreach $keyword ( @keywords ) { $sql_stmt .= " AND ( PlantDescription REGEXP "s/\$keyword/" );" }
20030709 Edit by Corion: Fixed formatting, added code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regex search
by antirice (Priest) on Jul 09, 2003 at 09:22 UTC | |
by Anonymous Monk on Jul 09, 2003 at 09:28 UTC | |
|
Re: regex search
by Lachesis (Friar) on Jul 09, 2003 at 09:30 UTC | |
|
Re: regex search
by roju (Friar) on Jul 09, 2003 at 20:23 UTC | |
|
Re: regex search
by dvergin (Monsignor) on Jul 10, 2003 at 00:15 UTC |