{"id":198181,"date":"2015-01-01T12:33:47","date_gmt":"2015-01-01T03:33:47","guid":{"rendered":"https:\/\/ja.wordpress.org\/support\/2015\/01\/01\/%e5%85%a5%e5%8a%9b%e3%83%95%e3%82%a9%e3%83%bc%e3%83%a0%e3%81%8b%e3%82%89%e3%81%ae%e3%83%9a%e3%83%bc%e3%82%b8%e8%87%aa%e5%8b%95%e7%94%9f%e6%88%90\/"},"modified":"2015-01-01T12:33:47","modified_gmt":"2015-01-01T03:33:47","slug":"%e5%85%a5%e5%8a%9b%e3%83%95%e3%82%a9%e3%83%bc%e3%83%a0%e3%81%8b%e3%82%89%e3%81%ae%e3%83%9a%e3%83%bc%e3%82%b8%e8%87%aa%e5%8b%95%e7%94%9f%e6%88%90","status":"closed","type":"topic","link":"https:\/\/ja.wordpress.org\/support\/topic\/%e5%85%a5%e5%8a%9b%e3%83%95%e3%82%a9%e3%83%bc%e3%83%a0%e3%81%8b%e3%82%89%e3%81%ae%e3%83%9a%e3%83%bc%e3%82%b8%e8%87%aa%e5%8b%95%e7%94%9f%e6%88%90\/","title":{"rendered":"\u5165\u529b\u30d5\u30a9\u30fc\u30e0\u304b\u3089\u306e\u30da\u30fc\u30b8\u81ea\u52d5\u751f\u6210"},"content":{"rendered":"<p>\u306f\u3058\u3081\u307e\u3057\u3066\u3002\u8cea\u554f\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002<\/p>\n<p>web\u30da\u30fc\u30b8(\u30aa\u30fc\u30af\u30b7\u30e7\u30f3\u30b5\u30a4\u30c8\u306e\u3088\u3046\u306a\u3082\u306e)\u8a2a\u554f\u8005\u304c\u5165\u529b\u30da\u30fc\u30b8\u3088\u308a\u60c5\u5831\u3092\u5165\u529b\u3057\u3001\u305d\u306e\u60c5\u5831\u306b\u57fa\u3065\u304f\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30da\u30fc\u30b8\u3092\u81ea\u52d5\u751f\u6210\u3059\u308b\u3082\u306e\u3092\u4f5c\u6210\u4e2d\u3067\u3059\u3002(\u3067\u304d\u308b\u3060\u3051\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u306f\u4f7f\u308f\u305a\u306b\u3002)<\/p>\n<p>\u3057\u304b\u3057\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u767b\u9332\u306f\u3067\u304d\u308b\u306e\u3067\u3059\u304c\u3001\u30ab\u30b9\u30bf\u30e0\u6295\u7a3f\u30da\u30fc\u30b8\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u305b\u3093\u3002<br \/>\n\u9593\u9055\u3063\u3066\u3044\u308b\u7b87\u6240\u3092\u3054\u6559\u793a\u3044\u305f\u3060\u3051\u307e\u3059\u3067\u3057\u3087\u3046\u304b\u3002<\/p>\n<p>\u4ee5\u4e0b\u306b\u30b3\u30fc\u30c9\u306e\u4e00\u90e8\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n<p><strong>\u5165\u529b\u30d5\u30a9\u30fc\u30e0<\/strong><\/p>\n<pre><code>&lt;form id=&quot;form&quot; method=&quot;post&quot; action=&#039;php\/db_input1.php&#039;&gt;\n&lt;table&gt;\n\n&lt;label for=&quot;user_name&quot;&gt;\u540d\u524d&lt;\/label&gt;\n&lt;input type=&quot;text&quot; id=&quot;user_name&quot; name=&quot;user_name&quot; value=&quot;user_name&quot; \/&gt;\n\n&lt;label for=&quot;item_name&quot;&gt;\u5546\u54c1\u540d&lt;\/label&gt;\n&lt;input type=&quot;text&quot; id=&quot;&quot; name=&quot;item_name&quot; value=&quot;item_name&quot; \/&gt;\n\n&lt;label for=&quot;comment&quot;&gt;\u30b3\u30e1\u30f3\u30c8&lt;\/label&gt;\n&lt;input type=&quot;text&quot; id=&quot;comment&quot; name=&quot;comment&quot; value=&quot;comment&quot; \/&gt;\n\n&lt;input type=&quot;submit&quot; value=&quot;\u9001\u4fe1&quot; \/&gt;\n\n&lt;\/table&gt;\n&lt;\/form&gt;<\/code><\/pre>\n<p><strong>db_input1.php<\/strong><\/p>\n<pre><code>$con = mysql_connect(&#039;127.0.0.1&#039;, &#039;########&#039;, &#039;#######&#039;);\nif (!$con) {\n\t  exit(&#039;\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u63a5\u7d9a\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002&#039;);\n}\n\n$result = mysql_select_db(&#039;wordpress&#039;, $con);\nif (!$result) {\n\t  exit(&#039;\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u9078\u629e\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002&#039;);\n}\n\n$result = mysql_query(&#039;SET NAMES utf8&#039;, $con);\nif (!$result) {\n\t  exit(&#039;\u6587\u5b57\u30b3\u30fc\u30c9\u3092\u6307\u5b9a\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002&#039;);\n}\n\n$u_name = $_REQUEST[&#039;user_name&#039;];\n$i_name = $_REQUEST[&#039;item_name&#039;];\n$com = $_REQUEST[&#039;comment&#039;];\nif($_REQUEST[&#039;user_name&#039;]){\n           $result = mysql_query(&quot;\n\t\tINSERT INTO syuppin VALUES\n\t\t\t(112345,&#039;$u_name&#039;,&#039;$i_name&#039;,&#039;$com&#039;)&quot;);\n           require_once locate_template(&#039;php\/auto_upload.php&#039;);\n}\nelse{\n\techo &quot;user_name ERROR&quot;;\n}\n?&gt;<\/code><\/pre>\n<p>\u3069\u3046\u3084\u3089\u3001require_once locate_template(&#8216;php\/auto_upload.php&#8217;);\u304c\u3046\u307e\u304f\u52d5\u3044\u3066\u3044\u5185\u5bb9\u3067\u3059\u3002\u3069\u3046\u305e\u3088\u308d\u3057\u304f\u304a\u9858\u3044\u7533\u3057\u4e0a\u3052\u307e\u3059\u3002<\/p>\n","protected":false},"template":"","class_list":["post-198181","topic","type-topic","status-closed","hentry","topic-tag-16251"],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/198181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/198181\/revisions"}],"wp:attachment":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=198181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}