Hi everybody
here is Marina again
I want to display a list of linkowner an a list of the category
I want to use DISTINCT statement
please help
sub {
my $tags = shift;
my ($cat_id, $cat_name) = each %{$DB->table('Links')->get_categories($tags->{ID})};
my $link_db = $DB->table('Links','CatLinks');
my $sth = $link_db->select({ 'DISTINCT(LinkOwner)' });
my $output = '';
while (my $link = $sth->fetchrow_hashref) {
$output .= qq (<tr><td width="10%" height="25">$link->{'LinkOwner'}</td></tr>);
}
return $output;
}
Marina
here is Marina again
I want to display a list of linkowner an a list of the category
I want to use DISTINCT statement
please help
sub {
my $tags = shift;
my ($cat_id, $cat_name) = each %{$DB->table('Links')->get_categories($tags->{ID})};
my $link_db = $DB->table('Links','CatLinks');
my $sth = $link_db->select({ 'DISTINCT(LinkOwner)' });
my $output = '';
while (my $link = $sth->fetchrow_hashref) {
$output .= qq (<tr><td width="10%" height="25">$link->{'LinkOwner'}</td></tr>);
}
return $output;
}
Marina
