I am using this global that lists the latest modified links of me but I want to be able to have the category listed with each link, say Link 5 was modified today, and was in category1 i want to be able to have
Link1, Category1
Link2, Category2
Link3, Catgeory3 and ..........
sub {
my $tags = shift;
my $table = $DB->table('Links');
$table->select_options ('ORDER BY Mod_Date DESC', 'LIMIT 30');
my $sth = $table->select; my @output; while (my $link = $sth->fetchrow_hashref) {
push (@output, $link); }
return { modlinks => \@output }; }
Link1, Category1
Link2, Category2
Link3, Catgeory3 and ..........
sub {
my $tags = shift;
my $table = $DB->table('Links');
$table->select_options ('ORDER BY Mod_Date DESC', 'LIMIT 30');
my $sth = $table->select; my @output; while (my $link = $sth->fetchrow_hashref) {
push (@output, $link); }
return { modlinks => \@output }; }