最新の防災ストーリー
最近話された防災ストーリー
「防災トランプのはじめて教室」で話された防災ストーリーを公開しています。
get_var(“SELECT COUNT(*) FROM wp_bt_stories;”);
$str = “現在データベースに登録されている防災ストーリーは” .$num .”話です。”;
$str = str_replace(array(“\r\n”,”\r”,”\n”), ”, $str);
echo $str;
?>
get_results(“SELECT * FROM wp_bt_stories ORDER BY spetime DESC;”);
$counter = 0;
foreach ($rows as $row) {
$counter = $counter + 1;
echo ”
“;
echo ”
“; echo $row->age; echo “代 “; if (1==$row->gen){ echo “男性 ”; }else if(2==$row->gen){ echo “女性 ”; } echo “ |
“; echo ““; echo $row->title; echo ““; echo “(”; $str = $row->spetime; echo date(“Y年m月d日”, strtotime($str)); echo “)”; echo “ |
---|---|
“; if(1==$row->cat){ if(1==$row->number){ echo ““; }else if(2==$row->number){ echo ““; }else if(3==$row->number){ echo ““; }else if(4==$row->number){ echo ““; }else if(5==$row->number){ echo ““; }else if(6==$row->number){ echo ““; }else if(7==$row->number){ echo ““; }else if(8==$row->number){ echo ““; }else if(9==$row->number){ echo ““; }else if(10==$row->number){ echo ““; }else if(11==$row->number){ echo ““; }else if(12==$row->number){ echo ““; }else if(13==$row->number){ echo ““; } }else if(2==$row->cat){ if(1==$row->number){ echo ““; }else if(2==$row->number){ echo ““; }else if(3==$row->number){ echo ““; }else if(4==$row->number){ echo ““; }else if(5==$row->number){ echo ““; }else if(6==$row->number){ echo ““; }else if(7==$row->number){ echo ““; }else if(8==$row->number){ echo ““; }else if(9==$row->number){ echo ““; }else if(10==$row->number){ echo ““; }else if(11==$row->number){ echo ““; }else if(12==$row->number){ echo ““; }else if(13==$row->number){ echo ““; } }else if(3==$row->cat){ if(1==$row->number){ echo ““; }else if(2==$row->number){ echo ““; }else if(3==$row->number){ echo ““; }else if(4==$row->number){ echo ““; }else if(5==$row->number){ echo ““; }else if(6==$row->number){ echo ““; }else if(7==$row->number){ echo ““; }else if(8==$row->number){ echo ““; }else if(9==$row->number){ echo ““; }else if(10==$row->number){ echo ““; }else if(11==$row->number){ echo ““; }else if(12==$row->number){ echo ““; }else if(13==$row->number){ echo ““; } }else if(4==$row->cat){ if(1==$row->number){ echo ““; }else if(2==$row->number){ echo ““; }else if(3==$row->number){ echo ““; }else if(4==$row->number){ echo ““; }else if(5==$row->number){ echo ““; }else if(6==$row->number){ echo ““; }else if(7==$row->number){ echo ““; }else if(8==$row->number){ echo ““; }else if(9==$row->number){ echo ““; }else if(10==$row->number){ echo ““; }else if(11==$row->number){ echo ““; }else if(12==$row->number){ echo ““; }else if(13==$row->number){ echo ““; } } echo “ |
“; echo $row->content; echo “ |
“;
echo ”
“;
if( 100 == $counter) {
break;
}
}
?>;