Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [jai] select_options and query_sth

Quote Reply
Re: [jai] select_options and query_sth In reply to
Hi Simon,

Sorry for late reply on this post.

You could use rs option in CGI input to force a select_returns (fields that you wish returned) from using query_sth function:


$self->{db}->select_options("GROUP BY public_holiday_201, public_holiday_owner_id");
$self->{cgi}->{rs} = 'public_holiday_201,public_holiday_owner_id';
# Do the search and count the results.
my $sth = $self->{db}->query_sth ($self->{cgi}) or return $self->modify_search_form($GT::SQL::error);


Hope that helps,
Jean
Gossamer Threads Inc.
Subject Author Views Date
Thread select_options and query_sth jai 8623 Feb 24, 2003, 7:34 PM
Thread Re: [jai] select_options and query_sth
jean 8424 Feb 26, 2003, 11:14 AM
Thread Re: [jean] select_options and query_sth
jai 8403 Feb 27, 2003, 3:08 AM
Thread Re: [jai] select_options and query_sth
jai 8389 Mar 3, 2003, 9:47 PM
Thread Re: [jai] select_options and query_sth
jai 8344 Mar 7, 2003, 3:16 PM
Post Re: [jai] select_options and query_sth
jai 8313 Mar 11, 2003, 3:58 PM
Thread Re: [jai] select_options and query_sth
jean 8297 Mar 11, 2003, 4:39 PM
Thread Re: [jean] select_options and query_sth
jai 8309 Mar 11, 2003, 9:32 PM
Thread Re: [jai] select_options and query_sth
jean 8291 Mar 12, 2003, 12:05 AM
Thread Re: [jean] select_options and query_sth
jai 8249 Mar 17, 2003, 6:08 AM
Thread Re: [jai] select_options and query_sth
jean 8261 Mar 17, 2003, 2:46 PM
Thread Re: [jean] select_options and query_sth
jai 8239 Mar 17, 2003, 3:15 PM
Post Re: [jai] select_options and query_sth
rgbworld 7818 May 22, 2005, 3:44 PM