$page_title="よくある質問 - 株式会社ドリームクリエーション"?>
$pan_list="> よくある質問"?>
include "db_connect.inc";
$query = " select category_no,category,date_format(insert_date,'%Y/%m/%d') as insert_date2,date_format(update_date,'%Y/%m/%d') as update_date2 ".
" from faq_category_table ".
" where view_kbn='1' ".
" and language='1' ".
" order by jyunban ";
$result = mysql_query($query);
$query = " select faq_no,question,answer,category_no,view_kbn,date_format(insert_date,'%Y/%m/%d') as insert_date2,date_format(update_date,'%Y/%m/%d') as update_date2 ".
" from faq_table ".
" where view_kbn='1' ".
" and language='1' ".
" order by category_no,jyunban ";
$result2 = mysql_query($query);
if(mysql_num_rows($result2)>=0){
while($rc2=mysql_fetch_object($result2)){
$count[$rc2->category_no]=intval($count[$rc2->category_no])+1;
$faq_no[$rc2->category_no][$count[$rc2->category_no]]=$rc2->faq_no;
$question[$rc2->category_no][$count[$rc2->category_no]]=$rc2->question;
$answer[$rc2->category_no][$count[$rc2->category_no]]=$rc2->answer;
}
}
?>
if(mysql_num_rows($result)>=0){
while($rc=mysql_fetch_object($result)){
?>
category)?>
|
|
if($count[$rc->category_no]>=0){
?>
}
?>
}
$error_level=error_reporting(0);
if($result!=null)mysql_data_seek($result,0);
error_reporting($error_level);
}
?>
if(mysql_num_rows($result)>=0){
while($rc=mysql_fetch_object($result)){
?>
category)?>
|
|
if($count[$rc->category_no]>=0){
for($i=1;$i<=$count[$rc->category_no];$i++){
?>
Q.
|
category_no][$i])?>
|
A
|
category_no][$i])?>
|
}
}
?>
}
}
?>
|
|
|