Home : Products : DBMan SQL : Discussion :

Products: DBMan SQL: Discussion: Re: [604] Anybody Home?????: Edit Log

Here is the list of edits for this post
Re: [604] Anybody Home?????
I've tried to incorporate this code, but couldn't get it working. If you could, would you be able to show me what my new global would be with a "sort by" column and limit of 25 and descending? My current global:

Code:
sub {
my $tags = GT::Template->tags;
my $id = $tags->{ID};
my ($table, $field) = @_;
my $sth = $DB->table($table)->select({ $field => $id});
my @output;
while (my $rs = $sth->fetchrow_hashref ) {
push @output, $rs;
}
return { loop_hash => \@output };
}


Thanks for the help.

Last edited by:

Dempsey: Sep 17, 2009, 9:53 PM

Edit Log: