Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [jamesamorris] How do I get exact Search Results

Quote Reply
Re: [jamesamorris] How do I get exact Search Results In reply to
Try the code below:

sub {
my $tags = shift;
my $table = $DB->table('JOBS_MASTER');
$table->select_options('GROUP BY SHORTREGION']);
my $sth = $table->select();
my $output = '<select name=SHORTREGION><OPTION>';
while (my $row = $sth->fetchrow_hashref) {
$output .= '<option value='.$row->{SHORTREGION}.'>'.$row->{LONGREGION}.'</option>';
}
$output .= '</select>';
return $output;
}


Hope that helps.

TheStone.

B.
Subject Author Views Date
Thread How do I get exact Search Results jamesamorris 4600 Aug 18, 2004, 5:51 AM
Thread Re: [jamesamorris] How do I get exact Search Results
olivers 4435 Aug 18, 2004, 8:57 AM
Thread Re: [olivers] How do I get exact Search Results
jamesamorris 4431 Aug 19, 2004, 3:30 AM
Post Re: [jamesamorris] How do I get exact Search Results
olivers 4423 Aug 19, 2004, 4:09 AM
Post Re: [jamesamorris] How do I get exact Search Results
604 4406 Aug 31, 2004, 12:18 PM