■福岡史伝■
";
$res .= "";
$res .= " ";
$res .= " 弥生・古墳";
$res .= " 飛鳥";
$res .= " 奈良";
$res .= " 平安";
$res .= " 鎌倉 ";
$res .= " 南北朝・室町";
$res .= " 戦国";
$res .= " 江戸";
$res .= " 幕末・維新 ";
$res .= "";
///////////意外な話 編集/////////////////////////////////////////////////////////////////////////////////////
require_once('./ppg/post/fcdbsrch.php');
include("./ppg/post/cpdbopen.php");
$sql="select * from t010post where 大分類='01' order by HTTP ";
// SQL クエリを実行します。
$result = mysql_query($sql);
if (!$result) {
exit('データを読み込めませんでした。');
}
$incnt = 0;
$w_rand=mt_rand(0,1);
$w_mcate = '';
while ($row = mysql_fetch_array($result)) {
if ($w_mcate!==$row["中分類"]){
$res .= " ";
$res .= "
";
$res .= "[" . fnucsrccate2('中分類',$row['中分類']) . "] ";
$w_mcate = $row["中分類"];
}
$res .= "
【";
$res .= "";
$res .= $row["タイトル"];
$res .= "】(";
$res .= $row["F年"];
$res .= ") \n";
$w_naiyo = $row["内容"];
$w_naiyo = str_replace(' ','',$w_naiyo);
$w_naiyo = str_replace('','',$w_naiyo);
$w_naiyo = str_replace('','',$w_naiyo);
$w_naiyo = str_replace(' ','',$w_naiyo);
//テーブル削除
$cov_cnt=0;
$w_st = strpos($w_naiyo,"");
$w_len = strlen($w_naiyo);
if ($w_st==0) {
$w_naiyo=mb_substr($w_naiyo,$w_en + 8,$w_len - ($w_en + 8));
} else {
$w2_naiyo=substr($w_naiyo,0,$w_st - 1);
$w2_naiyo.=substr($w_naiyo,$w_en + 8,$w_len - ($w_en + 8));
$w_naiyo=$w2_naiyo;
}
$w_st = strpos($w_naiyo,"
";
echo $res;
?>
|