".SITE_NAME." / FAQ"; // eval("dooutput(\"".gettemplate(TEMPLATEDIR,"nav_end")."\");"); $a = 1; $b = 1; $db_faq_get = new DB_BIG; $db_faq_get_sub = new DB_BIG; $faq_name = "".SITE_NAME." "; $faq_name .= "FAQs (Frequently Asked Questions)"; if ($bgcolors == "on") { $bgcolor1 = "#FFEF6B"; $bgcolor2 = "#C68E31"; $background = "/phpshop/images/bg57.gif"; } else { $bgcolor1 = "#FFFFFF"; $bgcolor2 = "#FFFFFF"; $background = ""; } eval("dooutput(\"".gettemplate(TEMPLATEDIR,"faq_content_top")."\");"); //eval("dooutput(\"".gettemplate(TEMPLATEDIR,"faq_item_start")."\");"); $db_faq_get->connect(); $db_faq_get->query("select * from faq where fatherid= '0'"); while($row_faq=$db_faq_get->fetch($db_faq_get->Query_ID)){ echo"

"; dooutput(stripslashes($row_faq["faq_section"])); echo"
\n"; $db_faq_get_sub->connect(); $db_faq_get_sub->query("select * from faq where fatherid = '{$row_faq["id"]}'"); while($row_faq2=$db_faq_get_sub->fetch($db_faq_get_sub->Query_ID)){ echo"

{$a}-{$b} \n"; dooutput(stripslashes($row_faq2["question"])); echo"\n"; $b++; } $a++; $b = 1; } echo"
 \n"; echo"

Answers to FAQ\n"; $a = 1; //$db_faq_get->connect(); $db_faq_get->query("select * from faq where fatherid= '0'"); while($row_faq=$db_faq_get->fetch($db_faq_get->Query_ID)){ echo"

"; dooutput(stripslashes($row_faq["faq_section"])); echo"\n"; //$db_faq_get2->connect(); $db_faq_get_sub->query("select * from faq where fatherid = '{$row_faq["id"]}'"); while($row_faq2=$db_faq_get_sub->fetch($db_faq_get_sub->Query_ID)){ echo "

".$a."-".$b." "; dooutput(stripslashes($row_faq2["question"])); echo " [ TOP ]

\n"; dooutput(stripslashes($row_faq2["answer"])); echo"

\n"; $b++; } $a++; $b = 1; } echo"

\n"; eval("dooutput(\"".gettemplate(TEMPLATEDIR,"faq_content_end")."\");"); eval("dooutput(\"".gettemplate(TEMPLATEDIR,FOOTER_FILE)."\");"); exit; ?>