I've been trying to pass $link into the nph-build.cgi subroutines but I always get an argument
Software error:
Can't use an undefined value as a HASH reference at Links/HTML_Templates.pm line 403.
or
Software error:
HTML_TEMPLATES: Argument '' must be hash reference at /home/hostglo/public_html/cgi-bin/hosts/admin/nph-build.cgi line 1204
I thought that $link was a hash ref
while ($link = $sth->fetchrow_hashref) {
$total++;
$link_output{$link->{'Name'}} .= &site_html_link_article ($link);
$cat_path = $link->{'Category'};
$ID = $link->{'ID'};
# Write out individual articles.
$title_linked = &build_linked_title ('Article >> $link->Category');
$article = "Indiv";
open (ARTICLE, ">$LINKS{build_article_path}/$cat_path/$ID.shtml") or die ("unable to open Featured page: $LINKS{build_article_path}/$cat_path/$ID.shtml. Reason: $!");
print "\tIndividual Articles: <a href='$LINKS{build_article_url}/$cat_path/$ID.shtml' target='_blank'> $ID </a>\n";
print ARTICLE &site_html_article ($link, {grand_total => $GRAND_TOTAL, total => $total, link_results => $link_results, title_linked => $title_linked, article => $article});
close ARTICLE;
} # end of while
How can you parse the $link hash into your templates like you can do in detailed or link.html?
Software error:
Can't use an undefined value as a HASH reference at Links/HTML_Templates.pm line 403.
or
Software error:
HTML_TEMPLATES: Argument '' must be hash reference at /home/hostglo/public_html/cgi-bin/hosts/admin/nph-build.cgi line 1204
I thought that $link was a hash ref
while ($link = $sth->fetchrow_hashref) {
$total++;
$link_output{$link->{'Name'}} .= &site_html_link_article ($link);
$cat_path = $link->{'Category'};
$ID = $link->{'ID'};
# Write out individual articles.
$title_linked = &build_linked_title ('Article >> $link->Category');
$article = "Indiv";
open (ARTICLE, ">$LINKS{build_article_path}/$cat_path/$ID.shtml") or die ("unable to open Featured page: $LINKS{build_article_path}/$cat_path/$ID.shtml. Reason: $!");
print "\tIndividual Articles: <a href='$LINKS{build_article_url}/$cat_path/$ID.shtml' target='_blank'> $ID </a>\n";
print ARTICLE &site_html_article ($link, {grand_total => $GRAND_TOTAL, total => $total, link_results => $link_results, title_linked => $title_linked, article => $article});
close ARTICLE;
} # end of while
How can you parse the $link hash into your templates like you can do in detailed or link.html?