FAQ'; if($_GET['action']=="add") { // neue FAQ ertstellen $ergebnis=safe_query("SELECT * FROM ".PREFIX."faq_categories ORDER BY sort"); $faqcats=''; echo'
Category: '.$faqcats.'
FAQ:
Answer:
 
'; } elseif($_GET['action']=="edit") { // FAQ bearbeiten $faqID = $_GET['faqID']; $ergebnis=safe_query("SELECT * FROM ".PREFIX."faq WHERE faqID='$faqID'"); $ds=mysql_fetch_array($ergebnis); $faqcategory=safe_query("SELECT * FROM ".PREFIX."faq_categories ORDER BY sort"); $faqcats=''; echo'
Category: '.$faqcats.'
FAQ:
Answer:
'; } elseif($_GET['action']=="addcat") { // Kategorie erstellen echo'
Category Name:
Description:
 
'; } elseif($_GET['action']=="editcat") { // Kategorie bearbeiten $faqcatID = $_GET['faqcatID']; $ergebnis=safe_query("SELECT * FROM ".PREFIX."faq_categories WHERE faqcatID='$faqcatID'"); $ds=mysql_fetch_array($ergebnis); echo'
Category Name:
Description:
'; } else { echo' '; echo'
'; $ergebnis=safe_query("SELECT * FROM ".PREFIX."faq_categories ORDER BY sort"); $anz=safe_query("SELECT count(faqcatID) FROM ".PREFIX."faq_categories"); $anz=mysql_result($anz, 0); while($ds=mysql_fetch_array($ergebnis)) { echo''; $faq=safe_query("SELECT * FROM ".PREFIX."faq WHERE faqcatID='$ds[faqcatID]' ORDER BY sort"); $anzfaq=safe_query("SELECT count(faqID) FROM ".PREFIX."faq WHERE faqcatID='$ds[faqcatID]'"); $anzfaq=mysql_result($anzfaq, 0); while($db=mysql_fetch_array($faq)) { echo''; } } $faq=safe_query("SELECT * FROM ".PREFIX."faq WHERE faqcatID='0' ORDER BY sort"); $anzfaq=safe_query("SELECT count(faqID) FROM ".PREFIX."faq WHERE faqcatID='0'"); $anzfaq=mysql_result($anzfaq, 0); while($db=mysql_fetch_array($faq)) { echo''; } echo'
FAQ: Actions: Sort:
• '.$ds[faqcatname].'
'.$ds[description].'
- '.$db[question].'
'.$db[answer].'
'.$db[question].'
 
'; } ?>