in reply to Re: variable substitution using Like in DBI
in thread variable substitution using Like in DBI
my $input = param('input'); #or however you're getting it chomp $input; #any other processing to deal with unwanted characters my $sth = $dbh->prepare("SELECT someFields FROM mytable WHERE myqualif +ier LIKE ?"); $sth->execute("$input*");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: variable substitution using Like in DBI
by Grygonos (Chaplain) on Sep 11, 2003 at 19:42 UTC | |
by menolly (Hermit) on Sep 11, 2003 at 20:09 UTC |