FREQUENTLY ASKED QUESTIONS

'; $cata = ''; $list = ''; $nomor = 1; //*************************************************************************** //retrive faq information and display it //*************************************************************************** $result = open_mysql ($db, "select * from $tbl order by catagory asc"); open_mysql ("close"); if (substr_count(strtolower($PHP_SELF),"main.php")==0){ //echo '
FREQUENTLY ASKED QUESTIONS
'; } while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { $faq .= ''; $faq .= ''.$nomor.'.'; $faq .= ''.stripslashes($line["title"]).'
'; $faq .= stripslashes($line["content"]).'

'; $faq .= ''; if ($cata != $line["catagory"]){ $cata = $line["catagory"]; $list .= '
Catagory : '.ucwords($cata).'
'; $list .= ' '.stripslashes($line["title"]).'
'; }else{ $list .= ' '.stripslashes($line["title"]).'
'; } $nomor += 1; } $faq .= ''; echo $list; echo '

 


'; echo $faq; ?>

 

Periksa Harga & Ketersediaan