Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [bf] How to display unrelated files by date?

Quote Reply
Re: [bf] How to display unrelated files by date? In reply to
I'm no expert so I can't tell you why my last example didn't work (hopefully someone will jump in).

Try the following -

sub {
my ($table, $field, $value) = @_;
my $obj = $DB->table($table);
$obj->select_options ('ORDER BY field_name');
my $sth = $obj->select({ $field => $value });
my @output;
while (my $rs = $sth->fetchrow_hashref ) {
push @output, $rs;
}
return { loop_hash => \@output };
}


Simon
Subject Author Views Date
Thread How to display unrelated files by date? bf 7156 Apr 9, 2003, 8:41 AM
Thread Re: [bf] How to display unrelated files by date?
jai 7046 Apr 9, 2003, 4:18 PM
Thread Re: [jai] How to display unrelated files by date?
bf 7013 Apr 10, 2003, 2:51 PM
Thread Re: [bf] How to display unrelated files by date?
jai 7032 Apr 10, 2003, 4:28 PM
Thread Re: [jai] How to display unrelated files by date?
bf 7027 Apr 10, 2003, 4:46 PM
Thread Re: [bf] How to display unrelated files by date?
charly 6947 May 7, 2003, 4:56 AM
Thread Re: [charly] How to display unrelated files by date?
604 6938 May 7, 2003, 1:24 PM
Thread Re: [TheStone] How to display unrelated files by date?
charly 6936 May 7, 2003, 2:36 PM
Thread Re: [charly] How to display unrelated files by date?
604 6942 May 7, 2003, 2:42 PM
Thread Re: [TheStone] How to display unrelated files by date?
charly 6956 May 7, 2003, 2:55 PM
Thread Re: [charly] How to display unrelated files by date?
604 6926 May 7, 2003, 3:12 PM
Post Re: [TheStone] How to display unrelated files by date?
charly 6832 May 21, 2003, 7:09 AM