1 _info?>Read FAQ body<=
(Back to FAQ Index)
quote($FORM{'faqcat'}); my %faqcat; my %faqq; $sth = $dbh->prepare("SELECT faqcat, faqcatname, catorder FROM faqcat WHERE faqcat=$qfaqcat"); $sth->execute; while ($_ = $sth->fetchrow_hashref) { $faqcat{$_->{'faqcat'}} = $_; } $sth = $dbh->prepare("SELECT faqid, question, sortorder, faqcat, answer, lastmodtime FROM faq WHERE faqcat=$qfaqcat"); $sth->execute; while ($_ = $sth->fetchrow_hashref) { $faqq{$_->{'faqid'}} = $_; } foreach my $faqcat (sort { $faqcat{$a}->{'catorder'} <=> $faqcat{$b}->{'catorder'} } keys %faqcat) { $ret .= "

" . LJ::ehtml($faqcat{$faqcat}->{'faqcatname'}) . "

\n"; $ret .= "\n"; } return $ret; _code?> <=body page?> lib: cgi-bin/ljlib.pl link: htdocs/admin/faq/index.bml _c?>