Hi
Using this global (courtsey Andy/minesite) which gets the latest 10 additions site wide:
sub {
my $tbl = $DB->table('Links');
$tbl->select_options('ORDER BY Add_Date DESC','LIMIT 10');
my $sth = $tbl->select() || return $GT::SQL::error;
my $back;
while (my $hit = $sth->fetchrow_hashref) {
$back .= Links::SiteHTML::display('newlink',$hit);
}
return $back;
}
Two Questions:
(1) In the above how to include check for "Validated" links only.
(2) Would Want similar thing to display the Lates 10 links on Category Pages Including all the Subcategories meaning that while on any Category Page, 10 latest links (from that Category and Subcategories of that Category) are displayed.
TIA
HyTC
Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================
Using this global (courtsey Andy/minesite) which gets the latest 10 additions site wide:
sub {
my $tbl = $DB->table('Links');
$tbl->select_options('ORDER BY Add_Date DESC','LIMIT 10');
my $sth = $tbl->select() || return $GT::SQL::error;
my $back;
while (my $hit = $sth->fetchrow_hashref) {
$back .= Links::SiteHTML::display('newlink',$hit);
}
return $back;
}
Two Questions:
(1) In the above how to include check for "Validated" links only.
(2) Would Want similar thing to display the Lates 10 links on Category Pages Including all the Subcategories meaning that while on any Category Page, 10 latest links (from that Category and Subcategories of that Category) are displayed.
TIA
HyTC
Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================