{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/pulls/comments/189282088","pull_request_review_id":121432610,"id":189282088,"diff_hunk":"@@ -0,0 +1,49 @@\n+<?php\n+date_default_timezone_set('Europe/Moscow');\n+\n+require_once(\"functions.php\");\n+\n+$link = mysqli_connect('localhost', 'root', '', 'schema')\n+or die ('Ошибка ' . mysqli_error($link));\n+\n+$sql = 'SELECT categories_id, categories_name, css_class FROM categories';\n+$result = mysqli_query($link, $sql);","path":"lot.php","position":10,"original_position":10,"commit_id":"1c1f11db92c99f5ecca0884af752bc6527c17ce3","original_commit_id":"1c1f11db92c99f5ecca0884af752bc6527c17ce3","user":{"login":"zakirovir6","id":23662798,"avatar_url":"https://avatars1.githubusercontent.com/u/23662798?v=4","gravatar_id":"","url":"https://api.github.com/users/zakirovir6","html_url":"https://github.com/zakirovir6","followers_url":"https://api.github.com/users/zakirovir6/followers","following_url":"https://api.github.com/users/zakirovir6/following{/other_user}","gists_url":"https://api.github.com/users/zakirovir6/gists{/gist_id}","starred_url":"https://api.github.com/users/zakirovir6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zakirovir6/subscriptions","organizations_url":"https://api.github.com/users/zakirovir6/orgs","repos_url":"https://api.github.com/users/zakirovir6/repos","events_url":"https://api.github.com/users/zakirovir6/events{/privacy}","received_events_url":"https://api.github.com/users/zakirovir6/received_events","type":"User","site_admin":false},"body":"Еще лучше сделать еще один файл data.php, в котором были бы функции, возвращающие набор категорий и набор лотов, например, get_all_categories() и get_all_lots(). Функции должны возвращать массивы, то есть внутри - должен быть mysqli_fetch_all/mysqli_fetch","created_at":"2018-05-18T14:14:24Z","updated_at":"2018-05-18T14:39:49Z","html_url":"https://github.com/htmlacademy-php/684247-yeticave/pull/12#discussion_r189282088","pull_request_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/pulls/12","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/pulls/comments/189282088"},"html":{"href":"https://github.com/htmlacademy-php/684247-yeticave/pull/12#discussion_r189282088"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/pulls/12","id":188850355,"html_url":"https://github.com/htmlacademy-php/684247-yeticave/pull/12","diff_url":"https://github.com/htmlacademy-php/684247-yeticave/pull/12.diff","patch_url":"https://github.com/htmlacademy-php/684247-yeticave/pull/12.patch","issue_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/issues/12","number":12,"state":"open","locked":false,"title":"Работа со строкой запроса","user":{"login":"rRedq","id":38762919,"avatar_url":"https://avatars0.githubusercontent.com/u/38762919?v=4","gravatar_id":"","url":"https://api.github.com/users/rRedq","html_url":"https://github.com/rRedq","followers_url":"https://api.github.com/users/rRedq/followers","following_url":"https://api.github.com/users/rRedq/following{/other_user}","gists_url":"https://api.github.com/users/rRedq/gists{/gist_id}","starred_url":"https://api.github.com/users/rRedq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rRedq/subscriptions","organizations_url":"https://api.github.com/users/rRedq/orgs","repos_url":"https://api.github.com/users/rRedq/repos","events_url":"https://api.github.com/users/rRedq/events{/privacy}","received_events_url":"https://api.github.com/users/rRedq/received_events","type":"User","site_admin":false},"body":"\n\n---\n:mortar_board: [Работа со строкой запроса](https://up.htmlacademy.ru/php/5/user/684247/tasks/12)","created_at":"2018-05-17T20:20:09Z","updated_at":"2018-05-18T14:39:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e0871df39f88bf585d0857cbdf5d16a3a995f850","assignee":{"login":"zakirovir6","id":23662798,"avatar_url":"https://avatars1.githubusercontent.com/u/23662798?v=4","gravatar_id":"","url":"https://api.github.com/users/zakirovir6","html_url":"https://github.com/zakirovir6","followers_url":"https://api.github.com/users/zakirovir6/followers","following_url":"https://api.github.com/users/zakirovir6/following{/other_user}","gists_url":"https://api.github.com/users/zakirovir6/gists{/gist_id}","starred_url":"https://api.github.com/users/zakirovir6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zakirovir6/subscriptions","organizations_url":"https://api.github.com/users/zakirovir6/orgs","repos_url":"https://api.github.com/users/zakirovir6/repos","events_url":"https://api.github.com/users/zakirovir6/events{/privacy}","received_events_url":"https://api.github.com/users/zakirovir6/received_events","type":"User","site_admin":false},"assignees":[{"login":"zakirovir6","id":23662798,"avatar_url":"https://avatars1.githubusercontent.com/u/23662798?v=4","gravatar_id":"","url":"https://api.github.com/users/zakirovir6","html_url":"https://github.com/zakirovir6","followers_url":"https://api.github.com/users/zakirovir6/followers","following_url":"https://api.github.com/users/zakirovir6/following{/other_user}","gists_url":"https://api.github.com/users/zakirovir6/gists{/gist_id}","starred_url":"https://api.github.com/users/zakirovir6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zakirovir6/subscriptions","organizations_url":"https://api.github.com/users/zakirovir6/orgs","repos_url":"https://api.github.com/users/zakirovir6/repos","events_url":"https://api.github.com/users/zakirovir6/events{/privacy}","received_events_url":"https://api.github.com/users/zakirovir6/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/pulls/12/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/pulls/12/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/issues/12/comments","statuses_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/statuses/1c1f11db92c99f5ecca0884af752bc6527c17ce3","head":{"label":"rRedq:module6-task1","ref":"module6-task1","sha":"1c1f11db92c99f5ecca0884af752bc6527c17ce3","user":{"login":"rRedq","id":38762919,"avatar_url":"https://avatars0.githubusercontent.com/u/38762919?v=4","gravatar_id":"","url":"https://api.github.com/users/rRedq","html_url":"https://github.com/rRedq","followers_url":"https://api.github.com/users/rRedq/followers","following_url":"https://api.github.com/users/rRedq/following{/other_user}","gists_url":"https://api.github.com/users/rRedq/gists{/gist_id}","starred_url":"https://api.github.com/users/rRedq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rRedq/subscriptions","organizations_url":"https://api.github.com/users/rRedq/orgs","repos_url":"https://api.github.com/users/rRedq/repos","events_url":"https://api.github.com/users/rRedq/events{/privacy}","received_events_url":"https://api.github.com/users/rRedq/received_events","type":"User","site_admin":false},"repo":{"id":131182548,"name":"684247-yeticave","full_name":"rRedq/684247-yeticave","owner":{"login":"rRedq","id":38762919,"avatar_url":"https://avatars0.githubusercontent.com/u/38762919?v=4","gravatar_id":"","url":"https://api.github.com/users/rRedq","html_url":"https://github.com/rRedq","followers_url":"https://api.github.com/users/rRedq/followers","following_url":"https://api.github.com/users/rRedq/following{/other_user}","gists_url":"https://api.github.com/users/rRedq/gists{/gist_id}","starred_url":"https://api.github.com/users/rRedq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rRedq/subscriptions","organizations_url":"https://api.github.com/users/rRedq/orgs","repos_url":"https://api.github.com/users/rRedq/repos","events_url":"https://api.github.com/users/rRedq/events{/privacy}","received_events_url":"https://api.github.com/users/rRedq/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rRedq/684247-yeticave","description":"Андрей Сучков","fork":true,"url":"https://api.github.com/repos/rRedq/684247-yeticave","forks_url":"https://api.github.com/repos/rRedq/684247-yeticave/forks","keys_url":"https://api.github.com/repos/rRedq/684247-yeticave/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rRedq/684247-yeticave/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rRedq/684247-yeticave/teams","hooks_url":"https://api.github.com/repos/rRedq/684247-yeticave/hooks","issue_events_url":"https://api.github.com/repos/rRedq/684247-yeticave/issues/events{/number}","events_url":"https://api.github.com/repos/rRedq/684247-yeticave/events","assignees_url":"https://api.github.com/repos/rRedq/684247-yeticave/assignees{/user}","branches_url":"https://api.github.com/repos/rRedq/684247-yeticave/branches{/branch}","tags_url":"https://api.github.com/repos/rRedq/684247-yeticave/tags","blobs_url":"https://api.github.com/repos/rRedq/684247-yeticave/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rRedq/684247-yeticave/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rRedq/684247-yeticave/git/refs{/sha}","trees_url":"https://api.github.com/repos/rRedq/684247-yeticave/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rRedq/684247-yeticave/statuses/{sha}","languages_url":"https://api.github.com/repos/rRedq/684247-yeticave/languages","stargazers_url":"https://api.github.com/repos/rRedq/684247-yeticave/stargazers","contributors_url":"https://api.github.com/repos/rRedq/684247-yeticave/contributors","subscribers_url":"https://api.github.com/repos/rRedq/684247-yeticave/subscribers","subscription_url":"https://api.github.com/repos/rRedq/684247-yeticave/subscription","commits_url":"https://api.github.com/repos/rRedq/684247-yeticave/commits{/sha}","git_commits_url":"https://api.github.com/repos/rRedq/684247-yeticave/git/commits{/sha}","comments_url":"https://api.github.com/repos/rRedq/684247-yeticave/comments{/number}","issue_comment_url":"https://api.github.com/repos/rRedq/684247-yeticave/issues/comments{/number}","contents_url":"https://api.github.com/repos/rRedq/684247-yeticave/contents/{+path}","compare_url":"https://api.github.com/repos/rRedq/684247-yeticave/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rRedq/684247-yeticave/merges","archive_url":"https://api.github.com/repos/rRedq/684247-yeticave/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rRedq/684247-yeticave/downloads","issues_url":"https://api.github.com/repos/rRedq/684247-yeticave/issues{/number}","pulls_url":"https://api.github.com/repos/rRedq/684247-yeticave/pulls{/number}","milestones_url":"https://api.github.com/repos/rRedq/684247-yeticave/milestones{/number}","notifications_url":"https://api.github.com/repos/rRedq/684247-yeticave/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rRedq/684247-yeticave/labels{/name}","releases_url":"https://api.github.com/repos/rRedq/684247-yeticave/releases{/id}","deployments_url":"https://api.github.com/repos/rRedq/684247-yeticave/deployments","created_at":"2018-04-26T16:26:06Z","updated_at":"2018-05-17T11:13:12Z","pushed_at":"2018-05-17T20:23:20Z","git_url":"git://github.com/rRedq/684247-yeticave.git","ssh_url":"git@github.com:rRedq/684247-yeticave.git","clone_url":"https://github.com/rRedq/684247-yeticave.git","svn_url":"https://github.com/rRedq/684247-yeticave","homepage":null,"size":604,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"htmlacademy-php:master","ref":"master","sha":"fd0152a66e16db88f09f8d07c2596764ed11c0fa","user":{"login":"htmlacademy-php","id":27206120,"avatar_url":"https://avatars1.githubusercontent.com/u/27206120?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-php","html_url":"https://github.com/htmlacademy-php","followers_url":"https://api.github.com/users/htmlacademy-php/followers","following_url":"https://api.github.com/users/htmlacademy-php/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-php/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-php/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-php/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-php/orgs","repos_url":"https://api.github.com/users/htmlacademy-php/repos","events_url":"https://api.github.com/users/htmlacademy-php/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-php/received_events","type":"Organization","site_admin":false},"repo":{"id":131181593,"name":"684247-yeticave","full_name":"htmlacademy-php/684247-yeticave","owner":{"login":"htmlacademy-php","id":27206120,"avatar_url":"https://avatars1.githubusercontent.com/u/27206120?v=4","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-php","html_url":"https://github.com/htmlacademy-php","followers_url":"https://api.github.com/users/htmlacademy-php/followers","following_url":"https://api.github.com/users/htmlacademy-php/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-php/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-php/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-php/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-php/orgs","repos_url":"https://api.github.com/users/htmlacademy-php/repos","events_url":"https://api.github.com/users/htmlacademy-php/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-php/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/htmlacademy-php/684247-yeticave","description":"Андрей Сучков","fork":false,"url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave","forks_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/forks","keys_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/teams","hooks_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/events","assignees_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/tags","blobs_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/subscription","commits_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/merges","archive_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/downloads","issues_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/deployments","created_at":"2018-04-26T16:17:31Z","updated_at":"2018-05-17T09:21:51Z","pushed_at":"2018-05-17T20:23:22Z","git_url":"git://github.com/htmlacademy-php/684247-yeticave.git","ssh_url":"git@github.com:htmlacademy-php/684247-yeticave.git","clone_url":"https://github.com/htmlacademy-php/684247-yeticave.git","svn_url":"https://github.com/htmlacademy-php/684247-yeticave","homepage":"https://github.com/rRedq/684247-yeticave","size":600,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/pulls/12"},"html":{"href":"https://github.com/htmlacademy-php/684247-yeticave/pull/12"},"issue":{"href":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/issues/12"},"comments":{"href":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-php/684247-yeticave/statuses/1c1f11db92c99f5ecca0884af752bc6527c17ce3"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"zakirovir6"}}