{"action":"created","comment":{"url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/pulls/comments/89991536","pull_request_review_id":10513741,"id":89991536,"diff_hunk":"@@ -0,0 +1,149 @@\n+<!DOCTYPE html>\n+<html lang=\"ja\">\n+<head>\n+  <meta charset=\"utf-8\">\n+  <meta name=\"viewport\" content=\"width=device-width,initial-scale=1.0,minimum-scale=1.0\">\n+  <title>送信完了</title>\n+  <link href=\"css/thanks.css\" rel=\"stylesheet\">\n+</head>\n+<body>\n+<div>\n+\n+<?php\n+//1. POSTデータ取得\n+$lastname   = $_POST[\"lastname\"];\n+$firstname = $_POST[\"firstname\"];\n+$sex   = $_POST[\"sex\"];\n+$age = $_POST[\"age\"];\n+$college  = $_POST[\"college\"];\n+$email   = $_POST[\"email\"];\n+$email2 = $_POST[\"email2\"];\n+$touristspot = implode(\",\", $_POST[\"touristspot\"]); \n+//$touristspot = $_POST[\"touristspot\"];\n+\n+//2. DB接続します\n+try {\n+  $pdo = new PDO('mysql:dbname=symply_db;charset=utf8;host=mysql606.db.sakura.ne.jp','symply','symply1015');\n+} catch (PDOException $e) {\n+  exit('DbConnectError:'.$e->getMessage());\n+}\n+\n+//３．データ登録SQL作成\n+$stmt = $pdo->prepare(\"INSERT INTO trip(id, lastname, firstname, sex, age, college, email, email2, touristspot, indate)VALUES(NULL, :a1, :a2, :a3, :a4, :a5, :a6, :a7, :a8, sysdate())\");","path":"sample/insert_trip.php","position":32,"original_position":32,"commit_id":"732cba8640adbd49bb6bb7fdebbb324c105d2e43","original_commit_id":"732cba8640adbd49bb6bb7fdebbb324c105d2e43","user":{"login":"yoheiMune","id":1447152,"avatar_url":"https://avatars.githubusercontent.com/u/1447152?v=3","gravatar_id":"","url":"https://api.github.com/users/yoheiMune","html_url":"https://github.com/yoheiMune","followers_url":"https://api.github.com/users/yoheiMune/followers","following_url":"https://api.github.com/users/yoheiMune/following{/other_user}","gists_url":"https://api.github.com/users/yoheiMune/gists{/gist_id}","starred_url":"https://api.github.com/users/yoheiMune/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoheiMune/subscriptions","organizations_url":"https://api.github.com/users/yoheiMune/orgs","repos_url":"https://api.github.com/users/yoheiMune/repos","events_url":"https://api.github.com/users/yoheiMune/events{/privacy}","received_events_url":"https://api.github.com/users/yoheiMune/received_events","type":"User","site_admin":false},"body":"他も同じような項目を登録しているかと思いますので、親子関係のテーブルを定義すると処理もスッキリするかもしれません。","created_at":"2016-11-29T11:32:43Z","updated_at":"2016-11-29T11:35:59Z","html_url":"https://github.com/GS05-42-MatsuiKazuhiro/symply/pull/1#discussion_r89991536","pull_request_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/pulls/comments/89991536"},"html":{"href":"https://github.com/GS05-42-MatsuiKazuhiro/symply/pull/1#discussion_r89991536"},"pull_request":{"href":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/pulls/1","id":95669431,"html_url":"https://github.com/GS05-42-MatsuiKazuhiro/symply/pull/1","diff_url":"https://github.com/GS05-42-MatsuiKazuhiro/symply/pull/1.diff","patch_url":"https://github.com/GS05-42-MatsuiKazuhiro/symply/pull/1.patch","issue_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/issues/1","number":1,"state":"open","locked":false,"title":"レビュー1回目","user":{"login":"yoheiMune","id":1447152,"avatar_url":"https://avatars.githubusercontent.com/u/1447152?v=3","gravatar_id":"","url":"https://api.github.com/users/yoheiMune","html_url":"https://github.com/yoheiMune","followers_url":"https://api.github.com/users/yoheiMune/followers","following_url":"https://api.github.com/users/yoheiMune/following{/other_user}","gists_url":"https://api.github.com/users/yoheiMune/gists{/gist_id}","starred_url":"https://api.github.com/users/yoheiMune/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoheiMune/subscriptions","organizations_url":"https://api.github.com/users/yoheiMune/orgs","repos_url":"https://api.github.com/users/yoheiMune/repos","events_url":"https://api.github.com/users/yoheiMune/events{/privacy}","received_events_url":"https://api.github.com/users/yoheiMune/received_events","type":"User","site_admin":false},"body":"こちらのプルリクエストでレビューをさせていただきます。\r\n\r\n現在作業中。","created_at":"2016-11-29T10:59:34Z","updated_at":"2016-11-29T11:35:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"be047495bd95709e2d060ecba6a243e41e9e6e66","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/pulls/1/commits","review_comments_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/pulls/1/comments","review_comment_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/issues/1/comments","statuses_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/statuses/732cba8640adbd49bb6bb7fdebbb324c105d2e43","head":{"label":"GS05-42-MatsuiKazuhiro:master","ref":"master","sha":"732cba8640adbd49bb6bb7fdebbb324c105d2e43","user":{"login":"GS05-42-MatsuiKazuhiro","id":22079908,"avatar_url":"https://avatars.githubusercontent.com/u/22079908?v=3","gravatar_id":"","url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro","html_url":"https://github.com/GS05-42-MatsuiKazuhiro","followers_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/followers","following_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/following{/other_user}","gists_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/gists{/gist_id}","starred_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/subscriptions","organizations_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/orgs","repos_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/repos","events_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/events{/privacy}","received_events_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/received_events","type":"User","site_admin":false},"repo":{"id":74876020,"name":"symply","full_name":"GS05-42-MatsuiKazuhiro/symply","owner":{"login":"GS05-42-MatsuiKazuhiro","id":22079908,"avatar_url":"https://avatars.githubusercontent.com/u/22079908?v=3","gravatar_id":"","url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro","html_url":"https://github.com/GS05-42-MatsuiKazuhiro","followers_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/followers","following_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/following{/other_user}","gists_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/gists{/gist_id}","starred_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/subscriptions","organizations_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/orgs","repos_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/repos","events_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/events{/privacy}","received_events_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GS05-42-MatsuiKazuhiro/symply","description":"symplyサイト","fork":false,"url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply","forks_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/forks","keys_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/teams","hooks_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/hooks","issue_events_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/issues/events{/number}","events_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/events","assignees_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/assignees{/user}","branches_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/branches{/branch}","tags_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/tags","blobs_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/git/refs{/sha}","trees_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/statuses/{sha}","languages_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/languages","stargazers_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/stargazers","contributors_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/contributors","subscribers_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/subscribers","subscription_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/subscription","commits_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/commits{/sha}","git_commits_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/git/commits{/sha}","comments_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/comments{/number}","issue_comment_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/issues/comments{/number}","contents_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/contents/{+path}","compare_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/merges","archive_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/downloads","issues_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/issues{/number}","pulls_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/pulls{/number}","milestones_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/milestones{/number}","notifications_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/labels{/name}","releases_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/releases{/id}","deployments_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/deployments","created_at":"2016-11-27T08:27:38Z","updated_at":"2016-11-27T09:05:04Z","pushed_at":"2016-11-29T10:59:34Z","git_url":"git://github.com/GS05-42-MatsuiKazuhiro/symply.git","ssh_url":"git@github.com:GS05-42-MatsuiKazuhiro/symply.git","clone_url":"https://github.com/GS05-42-MatsuiKazuhiro/symply.git","svn_url":"https://github.com/GS05-42-MatsuiKazuhiro/symply","homepage":null,"size":13409,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"GS05-42-MatsuiKazuhiro:review/munesada-01","ref":"review/munesada-01","sha":"ad8cce4eb87b9b1cdcc73ee8b3f75f3c7a5cfb75","user":{"login":"GS05-42-MatsuiKazuhiro","id":22079908,"avatar_url":"https://avatars.githubusercontent.com/u/22079908?v=3","gravatar_id":"","url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro","html_url":"https://github.com/GS05-42-MatsuiKazuhiro","followers_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/followers","following_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/following{/other_user}","gists_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/gists{/gist_id}","starred_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/subscriptions","organizations_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/orgs","repos_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/repos","events_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/events{/privacy}","received_events_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/received_events","type":"User","site_admin":false},"repo":{"id":74876020,"name":"symply","full_name":"GS05-42-MatsuiKazuhiro/symply","owner":{"login":"GS05-42-MatsuiKazuhiro","id":22079908,"avatar_url":"https://avatars.githubusercontent.com/u/22079908?v=3","gravatar_id":"","url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro","html_url":"https://github.com/GS05-42-MatsuiKazuhiro","followers_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/followers","following_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/following{/other_user}","gists_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/gists{/gist_id}","starred_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/subscriptions","organizations_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/orgs","repos_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/repos","events_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/events{/privacy}","received_events_url":"https://api.github.com/users/GS05-42-MatsuiKazuhiro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GS05-42-MatsuiKazuhiro/symply","description":"symplyサイト","fork":false,"url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply","forks_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/forks","keys_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/teams","hooks_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/hooks","issue_events_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/issues/events{/number}","events_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/events","assignees_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/assignees{/user}","branches_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/branches{/branch}","tags_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/tags","blobs_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/git/refs{/sha}","trees_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/statuses/{sha}","languages_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/languages","stargazers_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/stargazers","contributors_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/contributors","subscribers_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/subscribers","subscription_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/subscription","commits_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/commits{/sha}","git_commits_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/git/commits{/sha}","comments_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/comments{/number}","issue_comment_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/issues/comments{/number}","contents_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/contents/{+path}","compare_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/merges","archive_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/downloads","issues_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/issues{/number}","pulls_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/pulls{/number}","milestones_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/milestones{/number}","notifications_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/labels{/name}","releases_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/releases{/id}","deployments_url":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/deployments","created_at":"2016-11-27T08:27:38Z","updated_at":"2016-11-27T09:05:04Z","pushed_at":"2016-11-29T10:59:34Z","git_url":"git://github.com/GS05-42-MatsuiKazuhiro/symply.git","ssh_url":"git@github.com:GS05-42-MatsuiKazuhiro/symply.git","clone_url":"https://github.com/GS05-42-MatsuiKazuhiro/symply.git","svn_url":"https://github.com/GS05-42-MatsuiKazuhiro/symply","homepage":null,"size":13409,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/pulls/1"},"html":{"href":"https://github.com/GS05-42-MatsuiKazuhiro/symply/pull/1"},"issue":{"href":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/issues/1"},"comments":{"href":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/GS05-42-MatsuiKazuhiro/symply/statuses/732cba8640adbd49bb6bb7fdebbb324c105d2e43"}}}}
{"actor":{"display_login":"yoheiMune"}}