{"id":19779,"date":"2019-03-25T14:53:11","date_gmt":"2019-03-25T05:53:11","guid":{"rendered":"https:\/\/kimassi.net\/zak\/?p=19779"},"modified":"2019-05-09T17:42:44","modified_gmt":"2019-05-09T08:42:44","slug":"%ef%bd%90%ef%bd%88%ef%bd%90%e3%81%a7%e6%a4%9c%e7%b4%a2%e8%a1%a8%e7%a4%ba%e3%81%a7%e3%81%8d%e3%82%8b%e3%83%9a%e3%83%bc%e3%82%b8%e3%81%ab%e3%83%88%e3%83%a9%e3%82%a4","status":"publish","type":"post","link":"https:\/\/kimassi.net\/zak\/?p=19779","title":{"rendered":"\uff30\uff28\uff30\u3067\u691c\u7d22\u8868\u793a\u3067\u304d\u308b\u30da\u30fc\u30b8\u306b\u30c8\u30e9\u30a4"},"content":{"rendered":"<p><span style=\"color: #ff0000;\"><strong>2019\u5e743\u670825\u65e5<\/strong><\/span><\/p>\n<p><span style=\"color: #0000ff;\">\uff30\uff28\uff30\u3067\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3082\u6163\u308c\u3066\u304d\u305f\u306e\u3067\u3001\u6b21\u306f\u6761\u4ef6\u3092\u8a2d\u5b9a\u3057\u3066\u30c7\u30fc\u30bf\u3092\u8868\u793a\u3067\u304d\u308b\u30da\u30fc\u30b8\u3092\u4f5c\u308d\u3046\u304b\u306a\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002<\/span><br \/>\n<span style=\"color: #0000ff;\">\u5546\u54c1\u3092\u63a2\u3059\u3068\u304d\u306b\u3001\u3044\u304f\u3089\u304b\u3089\u3044\u304f\u3089\u306e\u7bc4\u56f2\u3067\u3001\u3069\u3046\u3044\u3046\u6761\u4ef6\u306e\u3082\u306e\u3092\u5b89\u3044\u9806\u306b\u4e00\u89a7\u8868\u793a\u3057\u3066\u30af\u30ea\u30c3\u30af\u3057\u305f\u3089\u8a73\u7d30\u60c5\u5831\u3092\u5f97\u3089\u308c\u308b\u3068\u3044\u3046\u3088\u3046\u306a\u30da\u30fc\u30b8\u3063\u3066\u3088\u304f\u898b\u304b\u3051\u307e\u3059\u3088\u306d\u3002<\/span><\/p>\n<p><span style=\"color: #0000ff;\">\u3053\u308c\u3092\u30de\u30b9\u30bf\u30fc\u3059\u308b\u3068\u3001\u307b\u307c\u3069\u3093\u306a\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u3067\u3082\u4f5c\u6210\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #0000ff;\">\u3068\u308a\u3042\u3048\u305a\u3001\u6fc0\u5b89\u306e\u6238\u5efa\u3066\u306e\u5bb6\u3092\u30c6\u30fc\u30de\u306b\u4f5c\u3063\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/span><br \/>\n<span style=\"color: #0000ff;\">\u696d\u8005\u306b\u983c\u3089\u306a\u304f\u3066\u3082\u3001\u5bb6\u3092\u51e6\u5206\u3057\u305f\u3044\u4eba\u304c\u7121\u6599\u3067\u63b2\u8f09\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308c\u3070\u9762\u767d\u3044\u304b\u306a\u3068\u601d\u3044\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #0000ff;\">\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u9805\u76ee\u306fno,id,date,tiiki,tyoumei,tikunensuu,tyuusya,map,setback,saikentiku,bikou1,bikou2,totimenseki,tatemonomenseki,madori,sennin,mail,namae,kakaku,gazou1,gazou2,gazou3,gazou4,gazou5,gazou6,gazou7,gazou8,gazou9,gazou10<\/span><br \/>\n<span style=\"color: #0000ff;\">\u691c\u7d22\u5bfe\u8c61\u306ftiiki,tikunensuu,kakaku,tiiki2<\/span><br \/>\n<span style=\"color: #0000ff;\">\u8868\u793a\u9806\u306fdate,kakaku<\/span><br \/>\n<span style=\"color: #0000ff;\">\u4e00\u89a7\u8868\u793a\u306fdate,tiiki.tyoumei,tikunensuu,saikentiku,bikou2,totimenseki,tatemonomennseki,kakaku,madori,gazou1,new<\/span><br \/>\n<span style=\"color: #0000ff;\">\u3060\u3044\u305f\u3044\u3001\u3053\u3046\u3044\u3046\u611f\u3058\u304b\u306a\u3002<\/span><\/p>\n<p><span style=\"color: #ff0000;\"><strong>2019\u5e743\u670830\u65e5<\/strong><\/span><\/p>\n<p><span style=\"color: #0000ff;\">XAMPP\u4e0a\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u753b\u50cf\u3063\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u767b\u9332\u3059\u308b\u306b\u306f\u4e0d\u5411\u304d\u306a\u3088\u3046\u3067\u3059\u3002\u753b\u50cf\u3078\u306e\u30a2\u30c9\u30ec\u30b9\u3092\u767b\u9332\u3057\u3066\u753b\u50cf\u306f\u5225\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3059\u308b\u3088\u3046\u3067\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #ff0000;\"><strong>2019\u5e743\u670831\u65e5<\/strong><\/span><\/p>\n<p><span style=\"color: #0000ff;\">\u3068\u308a\u3042\u3048\u305a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u8aad\u307f\u8fbc\u3093\u3067\u3001\u753b\u50cf\u3092\uff11\u3064\u3068\u7bc9\u5e74\u6570\u3068\u4fa1\u683c\u3092\u8868\u3067\u8868\u793a\u3059\u308bPHP\u3092\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/span><br \/>\n<span style=\"color: #0000ff;\">\u00a5\u306f\u753b\u9762\u4e0a\u306f\\\u306b\u306a\u3063\u3066\u8868\u793a\u3055\u308c\u307e\u3059\u304c\u30a8\u30c7\u30a3\u30bf\u30fc\u3067copy&amp;paste\u306f\u554f\u984c\u306a\u304f\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p>&lt;?php<br \/>\ntry {<br \/>\n$pdo = new PDO(&#8216;mysql:dbname=gekiyasukodate;host=127.0.0.1;charset=utf8&#8217;, &#8216;root&#8217;, &#8221;);<br \/>\n} catch (PDOException $e) {<br \/>\necho &#8216;DB\u63a5\u7d9a\u30a8\u30e9\u30fc\uff1a &#8216; . $e-&gt;getMessage();<br \/>\n}<br \/>\n?&gt;<\/p>\n<p>&lt;?php<\/p>\n<p>echo &#8220;&lt;table bgcolor=\\&#8221;#fbe48c\\&#8221;&gt;\\n&#8221;;<br \/>\n$stmt =$pdo-&gt;query(&#8220;SELECT * FROM gekiyasukodate&#8221;);<br \/>\n$result = $stmt-&gt;fetchAll(PDO::FETCH_ASSOC);<br \/>\nforeach ($result as $results) {<\/p>\n<p>$price=number_format($results[&#8216;kakaku&#8217;]);<\/p>\n<p>echo &#8220;&lt;tr&gt;\\n&#8221;;<br \/>\necho &#8220;&lt;td bgcolor=\\&#8221;#ffffff\\&#8221; &gt;&lt;p class=\\&#8221;resizeimage2\\&#8221;&gt;&lt;IMG src=\\&#8221;{$results[&#8216;gazou1&#8217;]}\\&#8221; border=\\&#8221;0\\&#8221;&gt;&lt;\/p&gt;&lt;\/td&gt;\\n&#8221;;<br \/>\necho &#8220;&lt;td bgcolor=\\&#8221;#ffffff\\&#8221; class=\\&#8221;gyou2\\&#8221;&gt;\u7bc9\u5e74\u6570\u3000{$results[&#8216;tikunensuu&#8217;]}\u5e74&lt;BR&gt;\u4fa1\u683c $price \u5186&lt;\/td&gt;\\n&#8221;;<br \/>\necho &#8220;&lt;\/tr&gt;\\n&#8221;;<br \/>\n}<br \/>\necho &#8220;&lt;\/table&gt;\\n&#8221;;<\/p>\n<p>?&gt;<\/p>\n<p><span style=\"color: #ff0000;\"><strong>2019\u5e744\u67081\u65e5<\/strong><\/span><\/p>\n<p><span style=\"color: #0000ff;\">\uff11\u30da\u30fc\u30b8\u306b5\u4ef6\u306e\u30c7\u30fc\u30bf\u306e\u8868\u793a\u306b\u3057\u3066\u3001\u305d\u306e\u4ee5\u4e0a\u306e\u30c7\u30fc\u30bf\u306f\u6b21\u306e\u30da\u30fc\u30b8\u3067\u8868\u793a\u3057\u3088\u3046\u3068\u601d\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u306a\u304b\u306a\u304b\u3067\u304d\u307e\u305b\u3093\u3002<\/span><br \/>\n<span style=\"color: #0000ff;\">\u30cd\u30c3\u30c8\u3067\u8abf\u3079\u3066\u3001\u8a66\u3057\u3066\u307f\u305f\u306e\u3067\u3059\u304c\u3001\u306a\u304b\u306a\u304b\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001\u306a\u3093\u3068\u304b\u6b63\u5e38\u306b\u52d5\u4f5c\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u898b\u3064\u3051\u307e\u3057\u305f\u3002<\/span><\/p>\n<p><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/manablog.org\/php-pagination\/\" target=\"_blank\" rel=\"noopener\">https:\/\/manablog.org\/php-pagination\/<\/a><\/span><\/p>\n<p><span style=\"color: #0000ff;\">\u3092\u53c2\u8003\u306b\u3001\u3068\u308a\u3042\u3048\u305a\u8a72\u5f53\u3059\u308b\u30c7\u30fc\u30bf\u30925\u4ef6\u305a\u3064\u8868\u793a\u3059\u308b\u4e8b\u304c\u3067\u304d\u307e\u3057\u305f\u3002\u307e\u3060\u307e\u3060\u6539\u826f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/span><\/p>\n<p>&lt;?php<br \/>\ntry {<br \/>\n$pdo = new PDO(&#8216;mysql:dbname=gekiyasukodate;host=127.0.0.1;charset=utf8&#8217;, &#8216;root&#8217;, &#8221;);<br \/>\n} catch (PDOException $e) {<br \/>\necho &#8216;DB\u63a5\u7d9a\u30a8\u30e9\u30fc\uff1a &#8216; . $e-&gt;getMessage();<br \/>\n}<br \/>\n?&gt;<\/p>\n<p>&lt;?php<\/p>\n<p>\/\/ GET\u3067\u73fe\u5728\u306e\u30da\u30fc\u30b8\u6570\u3092\u53d6\u5f97\u3059\u308b\uff08\u672a\u5165\u529b\u306e\u5834\u5408\u306f1\u3092\u633f\u5165\uff09<br \/>\nif (isset($_GET[&#8216;page&#8217;])) {<br \/>\n$page = (int)$_GET[&#8216;page&#8217;];<br \/>\n} else {<br \/>\n$page = 1;<br \/>\n}<\/p>\n<p>\/\/ \u30b9\u30bf\u30fc\u30c8\u306e\u30dd\u30b8\u30b7\u30e7\u30f3\u3092\u8a08\u7b97\u3059\u308b<br \/>\nif ($page &gt; 1) {<br \/>\n\/\/ \u4f8b\uff1a\uff12\u30da\u30fc\u30b8\u76ee\u306e\u5834\u5408\u306f\u3001\u300e(2 \u00d7 5) &#8211; 5 = 5\u300f<br \/>\n$start = ($page * 5) &#8211; 5;<br \/>\n} else {<br \/>\n$start = 0;<br \/>\n}<\/p>\n<p>echo &#8220;&lt;table bgcolor=\\&#8221;#fbe48c\\&#8221;&gt;\\n&#8221;;<br \/>\n\/\/ posts\u30c6\u30fc\u30d6\u30eb\u304b\u30895\u4ef6\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b<br \/>\n$stml = $pdo-&gt;prepare(&#8221;<br \/>\nSELECT *<br \/>\nFROM gekiyasukodate<br \/>\nORDER BY kakaku ASC<br \/>\nLIMIT {$start}, 5<br \/>\n&#8220;);<br \/>\n$stml-&gt;execute();<br \/>\nforeach ($stml as $results) {<\/p>\n<p>$price=number_format($results[&#8216;kakaku&#8217;]);<\/p>\n<p>echo &#8220;&lt;tr&gt;\\n&#8221;;<br \/>\necho &#8220;&lt;td bgcolor=\\&#8221;#ffffff\\&#8221; &gt;&lt;p class=\\&#8221;resizeimage2\\&#8221;&gt;&lt;IMG src=\\&#8221;{$results[&#8216;gazou1&#8217;]}\\&#8221; border=\\&#8221;0\\&#8221;&gt;&lt;\/p&gt;&lt;\/td&gt;\\n&#8221;;<br \/>\necho &#8220;&lt;td bgcolor=\\&#8221;#ffffff\\&#8221; class=\\&#8221;gyou2\\&#8221;&gt;\u7bc9\u5e74\u6570\u3000{$results[&#8216;tikunensuu&#8217;]}\u5e74&lt;BR&gt;\u4fa1\u683c $price \u5186&lt;\/td&gt;\\n&#8221;;<br \/>\necho &#8220;&lt;\/tr&gt;\\n&#8221;;<br \/>\n}<br \/>\necho &#8220;&lt;\/table&gt;\\n&#8221;;<\/p>\n<p>\/\/ posts\u30c6\u30fc\u30d6\u30eb\u306e\u30c7\u30fc\u30bf\u4ef6\u6570\u3092\u53d6\u5f97\u3059\u308b<br \/>\n$page_num = $pdo-&gt;prepare(&#8221;<br \/>\nSELECT COUNT(*) id<br \/>\nFROM gekiyasukodate<br \/>\n&#8220;);<br \/>\n$page_num-&gt;execute();<br \/>\n$page_num = $page_num-&gt;fetchColumn();<\/p>\n<p>\/\/ \u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u306e\u6570\u3092\u53d6\u5f97\u3059\u308b<br \/>\n$pagination = ceil($page_num \/ 5);<\/p>\n<p>?&gt;<\/p>\n<p>&lt;?php for ($x=1; $x &lt;= $pagination ; $x++) { ?&gt;<br \/>\n&lt;a href=&#8221;?page=&lt;?php echo $x ?&gt;&#8221;&gt;&lt;?php echo $x; ?&gt;&lt;\/a&gt;<br \/>\n&lt;?php } \/\/ End of for ?&gt;<\/p>\n<p><span style=\"color: #0000ff;\">PHP\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u30a8\u30e9\u30fc\u8868\u793a\u306e\u969b\u306b\u3001\u884c\u6570\u304c\u8868\u793a\u3055\u308c\u308b\u306e\u3067\u3059\u304c\u3001\u5b9f\u969b\u306e\u30a8\u30c7\u30a3\u30bf\u30fc\u3067\u306e\u884c\u6570\u3068\u305a\u308c\u308b\u306e\u3067\u3001\u4e0d\u90fd\u5408\u3060\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u539f\u56e0\u306f\u30a8\u30c7\u30a3\u30bf\u30fc\u30672\u884c\u306b\u6e21\u308b\u6587\u304c\u5b9f\u969b\u306b\u306f1\u884c\u3067\u3042\u308b\u5834\u5408\u304c\u3042\u3063\u3066\u3001\u305d\u308c\u304c\u539f\u56e0\u3060\u3068\u6c17\u3065\u304d\u307e\u3057\u305f\u3002<\/span><br \/>\n<span style=\"color: #0000ff;\">\u30a8\u30c7\u30a3\u30bf\u30fc\u306e1\u884c\u3067\u8868\u793a\u3067\u304d\u308b\u6587\u5b57\u6570\u3092\u6700\u5927\u306b\u3057\u3066\u89e3\u6c7a\u3057\u307e\u3057\u305f\u3002<\/span><br \/>\n<span style=\"color: #0000ff;\">\u79c0\u4e38\u306e\u5834\u5408\u306f\u3001\u8868\u793a&#8212;-\u6298\u308a\u8fd4\u3057&#8212;-\u6700\u5927\u3000\u3067OK\u3067\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #ff0000;\"><strong>2019\u5e744\u67082\u65e5<\/strong><\/span><\/p>\n<p><span style=\"color: #0000ff;\">\u30da\u30fc\u30b8\u3078\u306e\u30ea\u30f3\u30af\u3067\u73fe\u5728\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u30da\u30fc\u30b8\u3078\u306e\u30ea\u30f3\u30af\u3092\u5916\u3057\u3066\u73fe\u5728\u306e\u30da\u30fc\u30b8\u304c\u5224\u308b\u3088\u3046\u306b\u3057\u307e\u3057\u305f\u3002<\/span><\/p>\n<p>\/\/ posts\u30c6\u30fc\u30d6\u30eb\u306e\u30c7\u30fc\u30bf\u4ef6\u6570\u3092\u53d6\u5f97\u3059\u308b<br \/>\n$page_num = $pdo-&gt;prepare(&#8221;<br \/>\nSELECT COUNT(*) id<br \/>\nFROM gekiyasukodate<br \/>\n&#8220;);<br \/>\n$page_num-&gt;execute();<br \/>\n$page_num = $page_num-&gt;fetchColumn();<\/p>\n<p>\/\/ \u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u306e\u6570\u3092\u53d6\u5f97\u3059\u308b<br \/>\n$pagination = ceil($page_num \/ 5);<\/p>\n<p>?&gt;<\/p>\n<p>&lt;?php for ($x=1; $x &lt;= $pagination ; $x++) {<br \/>\nif ($x &lt;&gt; $page ){<br \/>\n?&gt;<br \/>\n&lt;a href=&#8221;?page=&lt;?php echo $x ?&gt;&#8221;&gt;&lt;?php echo $x; ?&gt;&lt;\/a&gt;<br \/>\n&lt;?php<br \/>\n} else {echo $x;}?&gt;<br \/>\n&lt;?php }\/\/ End of for ?&gt;<\/p>\n<p><span style=\"color: #ff0000;\"><strong>2019\u5e744\u67085\u65e5<\/strong><\/span><\/p>\n<p><span style=\"color: #0000ff;\">\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3001\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\u3067\u6761\u4ef6\u3092\u8a2d\u5b9a\u3057\u3066\u3001\u9078\u629e\u6761\u4ef6\u306b\u5f93\u3063\u3066\u691c\u7d22\u3059\u308b\u30da\u30fc\u30b8\u3092\u51fa\u529b\u3059\u308bPHP\u3092\u4f5c\u308d\u3046\u3068\u8a66\u884c\u932f\u8aa4\u3057\u3066\u3044\u307e\u3059\u3002<\/span><br \/>\n<span style=\"color: #0000ff;\">\u4f8b\u3048\u3070\u3001\u30c7\u30fc\u30bf\u304b\u3089\u91d1\u6ca2\u3068\u91ce\u3005\u5e02\u306e\u7269\u4ef6\u3092\u4fa1\u683c\u306e\u5b89\u3044\u9806\u306b\u8868\u793a\u3059\u308b\u3088\u3046\u306a\u611f\u3058\u3067\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #0000ff;\">\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3001\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\u306e\u8868\u793a\u304c\u3067\u304d\u308b\u306e\u3067\u3059\u304c\u3001\u9078\u629e\u3057\u305f\u6761\u4ef6\u3092\u30c7\u30fc\u30bf\u3068\u3057\u3066\u53d6\u5f97\u3059\u308b\u3068\u3053\u308d\u304c\u5168\u304f\u5206\u304b\u308a\u307e\u305b\u3093\u3002\u7d50\u69cb\u3057\u9078\u3079\u305f\u306e\u3067\u3059\u304c\u3001\u5206\u304b\u308a\u307e\u305b\u3093\u3002<\/span><br \/>\n<span style=\"color: #0000ff;\">\u305d\u308c\u3068\u8907\u6570\u306e\u6761\u4ef6\u3092\uff11\u3064\u306e\u300c\u9001\u4fe1\u3059\u308b\u300d\u3067\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u65b9\u6cd5\u304c\u5224\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/span><br \/>\n<span style=\"color: #0000ff;\">\u3053\u308c\u3067\uff13\u65e5\u9593\u60a9\u307f\u307e\u3057\u305f\u3002<\/span><\/p>\n<p><span style=\"color: #0000ff;\">\u7d50\u8ad6\u3068\u3057\u3066\u3001\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3001\u30d7\u30eb\u30c0\u30a6\u30f3\u3001\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\u306e\u4f7f\u3044\u65b9\u3063\u3066\u3001\uff30\uff28\uff30\u3067\u306a\u304f\u3066\u3001HTML\u306eform\u306e\u52c9\u5f37\u304c\u5fc5\u8981\u3060\u3063\u305f\u306e\u3067\u3057\u305f\u3002\u30db\u30fc\u30e0\u30da\u30fc\u30b8\u306f\u9577\u5e74\u4f5c\u3063\u3066\u3044\u308b\u3051\u3069\u3001\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u3068form\u306f\u907f\u3051\u3066\u3044\u305f\u306e\u3067\u6c17\u304c\u4ed8\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/span><br \/>\n<span style=\"color: #0000ff;\">\u305d\u308c\u3068\uff11\u3064\u306e\u30d5\u30a9\u30fc\u30e0\u306b\u8907\u6570\u306e\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3084\u30d7\u30eb\u30c0\u30a6\u30f3\u3001\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\u3092\u5165\u308c\u3066\u3001\u307e\u3068\u3081\u3066\u9001\u4fe1\u3059\u308b\u4e8b\u3082\u53ef\u80fd\u3060\u3068\u308f\u304b\u308a\u307e\u3057\u305f\u3002<\/span><\/p>\n<p><span style=\"color: #0000ff;\">form\u3067\u306fmethod= \u306fget\u304bpost\u306e\u3069\u3061\u3089\u304b\u3092\u4f7f\u3044\u3001action= \u3067\u306f\u9078\u629e\u3057\u305f\u30c7\u30fc\u30bf\u3092\u4f7f\u3063\u3066\u6539\u3081\u3066\u8868\u793a\u3057\u306a\u304a\u3059\u5834\u5408\u306f\u3001\u4eca\u4f5c\u52d5\u3057\u3066\u3044\u308bphp\u30d5\u30a1\u30a4\u30eb\uff08\u3068\u3044\u3046\u304b\u305d\u306ephp\u30d5\u30a1\u30a4\u30eb\u81ea\u8eab\uff09\u306e\u540d\u524d\u3092\u8a18\u5165\u3059\u308c\u3070\u826f\u3044\u3088\u3046\u3067\u3059\u3002<\/span><br \/>\n<span style=\"color: #0000ff;\">\uff08hudousan.php\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u306a\u3089&lt;form method=&#8221;get&#8221; action=&#8221;hudousan.php&#8221;&gt;\uff09<\/span><\/p>\n<p><span style=\"color: #0000ff;\">option value=\u3000\u3067\u9078\u629e\u3057\u305f\u30c7\u30fc\u30bf\uff08&lt;option value=&#8221;kakaku&#8221;&gt;\u306a\u3089kakaku\uff09\u306f\u3001method=&#8221;get&#8221; \u306e\u5834\u5408\u3001&lt;select name=&#8221;example1&#8243;&gt;\u306a\u3089$_GET[&#8216;example1&#8217;]\u3067\u53d6\u308a\u51fa\u305b\u307e\u3059\u3002<\/span><br \/>\n<span style=\"color: #0000ff;\">\u3053\u3046\u3044\u3046\u57fa\u672c\u7684\u306a\u4e8b\u3092\u6559\u3048\u3066\u304f\u308c\u308b\u8cc7\u6599\u3063\u3066\u306a\u304b\u306a\u304b\u898b\u3064\u304b\u3089\u306a\u304f\u3066\u672c\u5f53\u306b\u82e6\u52b4\u3057\u307e\u3057\u305f\u3002<\/span><br \/>\n<span style=\"color: #0000ff;\">\u3068\u308a\u3042\u3048\u305a\u3001\u30d7\u30eb\u30c0\u30a6\u30f3\u3067\u8868\u793a\u9806\u3092\u9078\u629e\u3057\u3066\u8868\u793a\u3059\u308b\u4e8b\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/span><\/p>\n<p>&lt;?php<br \/>\ntry {<br \/>\n$pdo = new PDO(&#8216;mysql:dbname=gekiyasukodate;host=127.0.0.1;charset=utf8&#8217;, &#8216;root&#8217;, &#8221;);<br \/>\n} catch (PDOException $e) {<br \/>\necho &#8216;DB\u63a5\u7d9a\u30a8\u30e9\u30fc\uff1a &#8216; . $e-&gt;getMessage();<br \/>\n}<br \/>\n?&gt;<\/p>\n<p>&lt;?php<br \/>\nfunction h($var) \/\/ HTML\u3067\u306e\u30a8\u30b9\u30b1\u30fc\u30d7\u51e6\u7406\u3092\u3059\u308b\u95a2\u6570<br \/>\n{<br \/>\nif (is_array($var)) {<br \/>\nreturn array_map(&#8216;h&#8217;, $var);<br \/>\n} else {<br \/>\nreturn htmlspecialchars($var, ENT_QUOTES, &#8216;UTF-8&#8217;);<br \/>\n}<br \/>\n}<br \/>\n\/\/ \u8868\u793a\u3059\u308b\u9806\u756a\u3092\u8a2d\u5b9a\u3000\u30c7\u30d5\u30a9\u30eb\u30c8\u306f\u4fa1\u683c\u9806<br \/>\nif (isset($_GET[&#8216;example1&#8217;])) {<br \/>\n$example1=h($_GET[&#8216;example1&#8242;]);<br \/>\n}<br \/>\nelse { $example1=&#8217;kakaku&#8217;;}<br \/>\n?&gt;<\/p>\n<p>\/\/ \u9078\u629e\u3057\u305f\u6761\u4ef6\u3092\u57fa\u306b\u3001\u73fe\u5728\u306e\u30da\u30fc\u30b8\u3092\u518d\u8aad\u307f\u8fbc\u307f<br \/>\n&lt;form method=&#8221;get&#8221; action=&#8221;hudousan.php&#8221;&gt;<br \/>\n&lt;p&gt;\u63b2\u8f09\u9806&lt;\/p&gt;<br \/>\n&lt;select name=&#8221;example1&#8243;&gt;<br \/>\n&lt;option value=&#8221;kakaku&#8221;&gt;\u7269\u4ef6\u306e\u5b89\u3044\u9806&lt;\/option&gt;<br \/>\n&lt;option value=&#8221;date&#8221;&gt;\u767b\u9332\u304c\u65b0\u3057\u3044\u9806&lt;\/option&gt;<br \/>\n&lt;\/select&gt;<br \/>\n&lt;p&gt;&lt;input type=&#8221;submit&#8221; value=&#8221;\u9001\u4fe1\u3059\u308b&#8221;&gt;&lt;\/p&gt;<br \/>\n&lt;\/form&gt;<\/p>\n<p>&lt;?php<br \/>\necho &#8220;&lt;table bgcolor=\\&#8221;#fbe48c\\&#8221;&gt;\\n&#8221;;<br \/>\n$stml = $pdo-&gt;prepare(&#8221;<br \/>\nSELECT *<br \/>\nFROM gekiyasukodate<br \/>\nORDER BY $example1 ASC<br \/>\n&#8220;);<br \/>\n$stml-&gt;execute();<br \/>\n$result = $stml-&gt;fetchAll(PDO::FETCH_ASSOC);<\/p>\n<p>foreach ($result as $results) {<br \/>\n$price=number_format($results[&#8216;kakaku&#8217;]);\/\/ \u6570\u5b57\u3092\uff13\u6841\u3054\u3068\u306b,\u3092\u5165\u308c\u3066\u8868\u793a<br \/>\necho &#8220;&lt;tr&gt;\\n&#8221;;<br \/>\necho &#8220;&lt;td bgcolor=\\&#8221;#ffffff\\&#8221; &gt;&lt;p class=\\&#8221;resizeimage2\\&#8221;&gt;&lt;IMG src=\\&#8221;{$results[&#8216;gazou1&#8217;]}\\&#8221; border=\\&#8221;0\\&#8221;&gt;&lt;\/p&gt;&lt;\/td&gt;\\n&#8221;;<br \/>\necho &#8220;&lt;td bgcolor=\\&#8221;#ffffff\\&#8221; class=\\&#8221;gyou2\\&#8221;&gt;\u7bc9\u5e74\u6570\u3000{$results[&#8216;tikunensuu&#8217;]}\u5e74&lt;BR&gt;\u4fa1\u683c $price \u5186&lt;\/td&gt;\\n&#8221;;<br \/>\necho &#8220;&lt;\/tr&gt;\\n&#8221;;<br \/>\n}<br \/>\necho &#8220;&lt;\/table&gt;\\n&#8221;;<\/p>\n<p><span style=\"color: #0000ff;\">\u3067\u3082\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3067\u8907\u6570\u306e\u6761\u4ef6\u3092\u9078\u629e\u3059\u308b\u65b9\u6cd5\u304c\u308f\u304b\u308a\u307e\u305b\u3093\u3002<\/span><\/p>\n<p><span style=\"color: #ff0000;\"><strong>2019\u5e744\u67086\u65e5<\/strong><\/span><\/p>\n<p><span style=\"color: #0000ff;\">\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3067\u8907\u6570\u306e\u6761\u4ef6\u9078\u629e\u3057\u3066\u3001\u305d\u306e\u9078\u629e\u6761\u4ef6\u306b\u5f93\u3063\u3066\u691c\u7d22\u8868\u793a\u3059\u308bPHP\u304c\u52d5\u4f5c\u3057\u307e\u3057\u305f<\/span><span style=\"color: #0000ff;\">\u3002\u3053\u308c\u3060\u3051\u3067\uff11\u65e5\u4ee5\u4e0a\u304b\u304b\u308a\u307e\u3057\u305f\u3002<br \/>\n&lt;input type=&#8221;checkbox&#8221; name=&#8221;example[]&#8221; value=&#8221;\u91d1\u6ca2\u5e02&#8221;&gt;\u91d1\u6ca2\u5e02<br \/>\n&lt;input type=&#8221;checkbox&#8221; name=&#8221;example[]&#8221; value=&#8221;\u91ce\u3005\u5e02&#8221;&gt;\u91ce\u3005\u5e02<br \/>\n\u306e\u3088\u3046\u306b\u3057\u3066\u53d7\u3051\u5165\u308c\u753b\u9762\u3092\u8a2d\u7f6e\u3057\u307e\u3059\u3002<br \/>\nexample[]\u3000\u3068\u3000&#8221;\u91ce\u3005\u5e02&#8221;&gt;\u91ce\u3005\u5e02\u3000\u306f\u5404\u81ea\u304c\u9078\u3073\u307e\u3059\u3002<br \/>\nexample[]\u306f\u914d\u5217\u306a\u306e\u3067[]\u306f\u5fc5\u9808\u3067\u3059\u3002<br \/>\n&lt;input type=&#8221;submit&#8221; value=&#8221;\u9001\u4fe1\u3059\u308b&#8221;&gt;\u3000\u3067\u30c7\u30fc\u30bf\u3092\u9001\u308b\u306e\u306f\u30d7\u30eb\u30c0\u30a6\u30f3\u3068\u540c\u69d8\u3067\u3059\u3002<\/span><br \/>\n<span style=\"color: #0000ff;\">\u30d7\u30eb\u30c0\u30a6\u30f3\u306e\u6761\u4ef6\u3068\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3067\u8907\u6570\u306e\u6761\u4ef6\u9078\u629e\u306e\u4e21\u65b9\u3092\u4e00\u7dd2\u306b\u6761\u4ef6\u3092\u9001\u308b\u306e\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u3059\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&lt;form method=&#8221;get&#8221; action=&#8221;hudousan.php&#8221;&gt;<br \/>\n&lt;p&gt;\u63b2\u8f09\u9806&lt;\/p&gt;<br \/>\n&lt;select name=&#8221;example1&#8243;&gt;<br \/>\n&lt;option value=&#8221;kakaku&#8221;&gt;\u7269\u4ef6\u306e\u5b89\u3044\u9806&lt;\/option&gt;<br \/>\n&lt;option value=&#8221;date&#8221;&gt;\u767b\u9332\u304c\u65b0\u3057\u3044\u9806&lt;\/option&gt;<br \/>\n&lt;\/select&gt;<\/p>\n<p>&lt;p&gt;\u8907\u6570\u9078\u629e\u53ef&lt;\/p&gt;<\/p>\n<p>&lt;input type=&#8221;checkbox&#8221; name=&#8221;example[]&#8221; value=&#8221;\u91d1\u6ca2\u5e02&#8221;&gt;\u91d1\u6ca2\u5e02<br \/>\n&lt;input type=&#8221;checkbox&#8221; name=&#8221;example[]&#8221; value=&#8221;\u91ce\u3005\u5e02&#8221;&gt;\u91ce\u3005\u5e02<br \/>\n&lt;input type=&#8221;checkbox&#8221; name=&#8221;example[]&#8221; value=&#8221;\u767d\u5c71\u5e02&#8221;&gt;\u767d\u5c71\u5e02<br \/>\n&lt;input type=&#8221;checkbox&#8221; name=&#8221;example[]&#8221; value=&#8221;\u5ddd\u5317\u753a&#8221;&gt;\u5ddd\u5317\u753a<br \/>\n&lt;input type=&#8221;checkbox&#8221; name=&#8221;example[]&#8221; value=&#8221;\u5185\u7058&#8221;&gt;\u5185\u7058<br \/>\n&lt;input type=&#8221;checkbox&#8221; name=&#8221;example[]&#8221; value=&#8221;\u6d25\u5e61\u753a&#8221;&gt;\u6d25\u5e61\u753a<\/p>\n<p>&lt;p&gt;&lt;input type=&#8221;submit&#8221; value=&#8221;\u9001\u4fe1\u3059\u308b&#8221;&gt;&lt;\/p&gt;<br \/>\n&lt;\/form&gt;<\/p>\n<p><span style=\"color: #0000ff;\">\u3053\u306e\u30da\u30fc\u30b8\u306fhudousan.php\u306a\u306e\u3067action=&#8221;hudousan.php\u201d\u3068\u3044\u3046\u306e\u306f\u81ea\u3089\u306e\u30da\u30fc\u30b8\u3092\u8aad\u307f\u76f4\u3059\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #0000ff;\">\u6700\u3082\u91cd\u8981\u306a\u30dd\u30a4\u30f3\u30c8\u306f\u3001\uff11\u3064\u306e\u9805\u76ee\uff08\u30ab\u30e9\u30e0\uff09\u3067\u8907\u6570\u306e\u30c7\u30fc\u30bf\u3092\u5bfe\u8c61\u306b\u691c\u7d22\u3059\u308b\u66f8\u5f0f\u3092\u628a\u63e1\u3059\u308b\u4e8b\u3067\u3057\u305f\u3002<br \/>\n\u4f8b\u3048\u3070\u3001tiiki\u3068\u3044\u3046\u9805\u76ee\uff08\u30ab\u30e9\u30e0\uff09\u3067\u91d1\u6ca2\u5e02\u3068\u767d\u5c71\u5e02\u3068\u5ddd\u5317\u753a\u3068\u3044\u3046\u30c7\u30fc\u30bf\u3092\u5bfe\u8c61\u306b\u691c\u7d22\u3059\u308b\u5834\u5408\u306f\u3001SELECT\u6587\u306e\u6761\u4ef6\u8a2d\u5b9a\u3067\u3000WHERE\u00a0 tiiki IN (&#8220;\u91d1\u6ca2\u5e02,\u767d\u5c71\u5e02,\u5ddd\u5317\u753a)\u00a0 \u00a0\u3068\u3044\u3046\u66f8\u5f0f\u304c\u5fc5\u8981\u3068\u3044\u3046\u4e8b\u3067\u3059\u3002<br \/>\ntiiki IN (&#8220;\u91d1\u6ca2\u5e02,\u767d\u5c71\u5e02,\u5ddd\u5317\u753a)\u00a0 \u306e\u90e8\u5206\u306e\u6587\u5b57\u5217\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306b\u3000\u5909\u6570\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u306f$where \u306b\u3057\u307e\u3057\u305f\u3002<br \/>\n&lt;form method=&#8221;get&#8221; action=&#8221;hudousan.php&#8221;&gt;<br \/>\n&lt;input type=&#8221;checkbox&#8221; name=&#8221;example[]&#8221; value=&#8221;\u91d1\u6ca2\u5e02&#8221;&gt;\u91d1\u6ca2\u5e02<br \/>\n\u3067\u5165\u529b\u3057\u305f\u306e\u3067\u3001\u305d\u306e\u30c7\u30fc\u30bf\u3092\u53d7\u3051\u53d6\u308b\u306b\u306f\u3000$_GET[&#8216;example&#8217;]\u3000\u3092\u4f7f\u3044\u307e\u3059\u3002<br \/>\n\u3064\u307e\u308a method=&#8221;get&#8221; \u3068 name=&#8221;example[]&#8221; \u306e\u90e8\u5206\u304c\u53d7\u3051\u53d6\u308b\u914d\u5217\u540d\u3092\u6c7a\u3081\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/span><\/p>\n<p>$where=&#8221;tiiki IN (&#8220;;<br \/>\nif (isset($_GET[&#8216;example&#8217;])) {<br \/>\nforeach ($_GET[&#8216;example&#8217;] as $value) {<br \/>\n$where=$where.&#8221;&#8216;&#8221;.$value.&#8221;&#8216;,&#8221;;<br \/>\n}<br \/>\n}<\/p>\n<p><span style=\"color: #0000ff;\">\u914d\u5217 $_GET[&#8216;example&#8217;]\u00a0 \u3092\u3000\u5909\u6570$where\u306b\u52a0\u3048\u3066\u3001 $_GET[&#8216;example&#8217;] \u306e\u524d\u306b\u300c\u00a0<\/span><span style=\"color: #0000ff;\">&#8216; \u300d\u3092\u5f8c\u308d\u306b\u300c &#8216; \u300d\u3068\u300c , \u300d\u3092\u52a0\u3048\u308b\u3068\u3044\u3046\u51e6\u7406\u3067\u3059\u3002<br \/>\n$where\u306e\u6587\u672b\u304c\u300c , \u300d \u306b\u306a\u308b\u306e\u3067\u3001\u4e0b\u8a18\u3067\u3001\u6587\u672b\u306e\u300c , \u300d\u3092\u524a\u9664\u3057\u3066\u300c ) \u300d\u3092\u52a0\u3048\u307e\u3059\u3002<\/span><\/p>\n<p>$where=substr($where, 0, -1).&#8221;)&#8221;;<\/p>\n<p><span style=\"color: #0000ff;\">SELECT\u6587\u306e\u6761\u4ef6\u8a2d\u5b9a\u306e\u90e8\u5206\u306f<\/span><\/p>\n<p>WHERE $where<\/p>\n<p><span style=\"color: #0000ff;\">\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u306a\u304a\u6761\u4ef6\u8a2d\u5b9a\u3057\u3066\u8868\u793a\u3059\u308b\u306e\u3067\u3001\u8868\u793a\u306e\u30c7\u30fc\u30bf\u6570\u3082\u6e1b\u308b\u306e\u3067\u30da\u30fc\u30b8\u30cd\u30fc\u30b7\u30e7\u30f3\u306e\u90e8\u5206\u306e\u5909\u66f4\u3082\u5fc5\u8981\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/span><\/p>\n<p>$page_num = $pdo-&gt;prepare(&#8221;<br \/>\nSELECT COUNT(*) id<br \/>\nFROM gekiyasukodate<br \/>\n&#8220;);<br \/>\n$page_num-&gt;execute();<br \/>\n$page_num = $page_num-&gt;fetchColumn();<\/p>\n<p><span style=\"color: #0000ff;\">\u3092\u4e0b\u8a18\u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002<\/span><\/p>\n<p>$page_num = $pdo-&gt;prepare(&#8221;<br \/>\nSELECT COUNT(*)<br \/>\nFROM gekiyasukodate<br \/>\nwhere $where<br \/>\n&#8220;);<br \/>\n$page_num-&gt;execute();<br \/>\n$page_num = $page_num-&gt;fetchColumn();<\/p>\n<p><span style=\"color: #0000ff;\">\u3053\u308c\u3067\uff30\uff28\uff30\u3067\u691c\u7d22\u8868\u793a\u3067\u304d\u308b\u30da\u30fc\u30b8\u306e\u57fa\u672c\u7684\u306a\u624b\u6cd5\u306f\u7406\u89e3\u3067\u304d\u305f\u306e\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #ff0000;\"><strong>2019\u5e744\u67087\u65e5<\/strong><\/span><\/p>\n<p><span style=\"color: #0000ff;\">\u30c6\u30fc\u30d6\u30eb\u5185\u306e\u753b\u50cf\u306e\u4e0a\u4e0b\u90e8\u306b\u4f59\u767d\u304c\u3067\u304d\u308b\u306e\u3067\u3001\u30b9\u30bf\u30a4\u30eb\u30b7\u30fc\u30c8\u306e<\/span><\/p>\n<p>&lt;STYLE&gt;<br \/>\n&lt;!&#8211;<br \/>\n@media(min-width: 600px){p.resizeimage2{<br \/>\nwidth: 240px;<br \/>\n}<br \/>\n}<br \/>\np.resizeimage2 img{<br \/>\nwidth: 100%;<br \/>\n}<br \/>\n&#8211;&gt;<br \/>\n&lt;\/style&gt;<\/p>\n<p><span style=\"color: #0000ff;\">\u3092\u4e0b\u8a18\u306b\u66f8\u304d\u63db\u3048\u307e\u3057\u305f\u3002<\/span><\/p>\n<p>&lt;STYLE&gt;<br \/>\n&lt;!&#8211;<br \/>\n@media(min-width: 600px){p.resizeimage2{<br \/>\nmargin-top: 0px;margin-bottom: 0px;width: 240px;<br \/>\n}<br \/>\n}<br \/>\np.resizeimage2 img{<br \/>\nwidth: 100%;<br \/>\n}<br \/>\n&#8211;&gt;<br \/>\n&lt;\/style&gt;<\/p>\n<p><span style=\"color: #0000ff;\">\uff12\u30da\u30fc\u30b8\u76ee\u3092\u898b\u308b\u6642\u306b\u3001\u8a2d\u5b9a\u3057\u305f\u6761\u4ef6\u304c\u30ea\u30bb\u30c3\u30c8\u3055\u308c\u3066\u3001\u521d\u671f\u6761\u4ef6\u306e\uff12\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3001\u8a2d\u5b9a\u3057\u305f\u6761\u4ef6\u306e\uff12\u30da\u30fc\u30b8\u76ee\u304c\u898b\u308c\u306a\u304f\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002<br \/>\n\uff12\u30da\u30fc\u30b8\u76ee\u306b\u98db\u3076\u30ea\u30f3\u30af\u306f<\/span><\/p>\n<p>&lt;a href=&#8221;?page=&lt;?php echo $x ?&gt;&#8221;&gt;&lt;?php echo $x; ?&gt;&lt;\/a&gt;<\/p>\n<p><span style=\"color: #0000ff;\">\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u73fe\u72b6\u306e\u30da\u30fc\u30b8\u306e\u30a2\u30c9\u30ec\u30b9\u3092\u53d6\u5f97\u3057\u3066\u3001\u305d\u308c\u3092\u57fa\u306b\uff12\u30da\u30fc\u30b8\u76ee\u306e\u30a2\u30c9\u30ec\u30b9\u3092\u6307\u5b9a\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002\u3070\u3063\u3061\u308a\u52d5\u4f5c\u3057\u307e\u3057\u305f\u3002<\/span><\/p>\n<p>&lt;a href=&#8221;&lt;?php echo $_SERVER[&#8216;REQUEST_URI&#8217;]?&gt; &amp;page=&lt;?php echo $x ?&gt;&#8221;&gt;&lt;?php echo $x; ?&gt;&lt;\/a&gt;<\/p>\n<p><span style=\"color: #0000ff;\">\u4eca\u307e\u3067\u3001XAMPP\u4e0a\u3067\u52d5\u4f5c\u3055\u305b\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u3042\u308b\u7a0b\u5ea6\u3001\u52d5\u4f5c\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u30aa\u30f3\u30e9\u30a4\u30f3\u3067\u52d5\u4f5c\u3055\u305b\u308b\u4e8b\u306b\u3057\u307e\u3057\u305f\u3002<\/span><br \/>\n<span style=\"color: #0000ff;\">\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30a2\u30c9\u30ec\u30b9\u3084\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u540d\u3001\u30c6\u30fc\u30d6\u30eb\u540d\u3092\u5909\u66f4\u3057\u3066\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u306e\u3067\u3059\u304c\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30c7\u30fc\u30bf\u304c\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3002<\/span><br \/>\n<span style=\"color: #0000ff;\">\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u7c21\u7565\u5316\u3057\u3066\u3082\u30c0\u30e1\u3067\u3059\u3002<\/span><\/p>\n<p>$stml = $pdo-&gt;prepare(&#8220;SELECT * FROM gekiyasukodate&#8221;);<\/p>\n<p><span style=\"color: #0000ff;\">\u306e\u90e8\u5206\u304c\u3001XAMPP\u3067\u306f\u52d5\u4f5c\u3059\u308b\u3051\u3069\u30aa\u30f3\u30e9\u30a4\u30f3\u3067\u306f\u52d5\u4f5c\u3057\u306a\u3044\u3088\u3046\u3067\u3059\u3002<\/span><\/p>\n<p>$stml = $db-&gt;prepare(&#8220;SELECT * FROM gekiyasukodate&#8221;);<\/p>\n<p><span style=\"color: #0000ff;\">\u306b\u5909\u66f4\u3059\u308b\u3068\u52d5\u4f5c\u3057\u307e\u3057\u305f\u3002<\/span><\/p>\n<p><a href=\"https:\/\/kimassi.net\/hudousan\/hudousan.php\" target=\"_blank\" rel=\"noopener\">https:\/\/kimassi.net\/hudousan\/hudousan.php<\/a><\/p>\n<p><span style=\"color: #ff0000;\"><strong>2019\u5e744\u67088\u65e5<\/strong><\/span><\/p>\n<p><span style=\"color: #0000ff;\">\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3001\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\u3067\u6761\u4ef6\u3092\u8a2d\u5b9a\u3057\u3066\u3001\u9078\u629e\u6761\u4ef6\u306b\u5f93\u3063\u3066\u4e2d\u53e4\u6238\u5efa\u3066\u306e\u6fc0\u5b89\u7269\u4ef6\u3092\u691c\u7d22\u4e00\u89a7\u8868\u793a\u3059\u308b\u30da\u30fc\u30b8\u306b\u5fc5\u8981\u9805\u76ee\u3092\u3059\u3079\u3066\u8868\u793a\u3067\u304d\u308b\u3088\u3046\u306b\u4f5c\u308a\u5909\u3048\u307e\u3057\u305f\u3002<br \/>\n\u8a73\u7d30\u30da\u30fc\u30b8\u3078\u306e\u30ea\u30f3\u30af\u3082\u633f\u5165\u3057\u307e\u3057\u305f\u3002<br \/>\n\u8a73\u7d30\u30da\u30fc\u30b8\u3092\u4f5c\u308c\u3070\u3001\u3068\u308a\u3042\u3048\u305a\u306f\u57fa\u672c\u7684\u306a\u51e6\u7406\u306f\u3067\u304d\u307e\u3059\u3002<br \/>\n\u8a73\u7d30\u30da\u30fc\u30b8\u306e\u753b\u50cf\u306f\u30b9\u30e9\u30a4\u30c9\u3067\u304d\u3066\u30af\u30ea\u30c3\u30af\u3067\u62e1\u5927\u3067\u304d\u308b\u3068\u3044\u3044\u304b\u306a\u3002<br \/>\n\u6295\u7a3f\u8005\u306e\u4f1a\u54e1\u767b\u9332\u306e\u30da\u30fc\u30b8\u3068\u6295\u7a3f\u8005\u306e\u30c7\u30fc\u30bf\u5165\u529b\u306e\u30da\u30fc\u30b8\u3084\u7269\u4ef6\u3054\u3068\u306e\u63b2\u793a\u677f\u3082\u8a2d\u7f6e\u3057\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002\u304b\u306a\u308a\u672c\u683c\u7684\u306a\u30b7\u30b9\u30c6\u30e0\u306b\u306a\u308a\u305d\u3046\u3067\u3059\u3002<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>2019\u5e743\u670825\u65e5 \uff30\uff28\uff30\u3067\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3082\u6163\u308c\u3066\u304d\u305f\u306e\u3067\u3001\u6b21\u306f\u6761\u4ef6\u3092\u8a2d\u5b9a\u3057\u3066\u30c7\u30fc\u30bf\u3092\u8868\u793a\u3067\u304d\u308b\u30da\u30fc\u30b8\u3092\u4f5c\u308d\u3046\u304b\u306a\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002 \u5546\u54c1\u3092\u63a2\u3059\u3068\u304d\u306b\u3001\u3044\u304f\u3089\u304b\u3089\u3044\u304f\u3089\u306e\u7bc4\u56f2\u3067\u3001\u3069\u3046\u3044\u3046\u6761\u4ef6\u306e\u3082\u306e\u3092\u5b89\u3044\u9806\u306b\u4e00\u89a7\u8868\u793a\u3057\u3066\u30af\u30ea [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[48,17,19],"tags":[],"class_list":["post-19779","post","type-post","status-publish","format-standard","hentry","category-php","category-17","category-19"],"_links":{"self":[{"href":"https:\/\/kimassi.net\/zak\/index.php?rest_route=\/wp\/v2\/posts\/19779","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kimassi.net\/zak\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kimassi.net\/zak\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kimassi.net\/zak\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kimassi.net\/zak\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=19779"}],"version-history":[{"count":38,"href":"https:\/\/kimassi.net\/zak\/index.php?rest_route=\/wp\/v2\/posts\/19779\/revisions"}],"predecessor-version":[{"id":19977,"href":"https:\/\/kimassi.net\/zak\/index.php?rest_route=\/wp\/v2\/posts\/19779\/revisions\/19977"}],"wp:attachment":[{"href":"https:\/\/kimassi.net\/zak\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=19779"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kimassi.net\/zak\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=19779"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kimassi.net\/zak\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=19779"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}