{"id":49131,"date":"2018-09-13T22:32:26","date_gmt":"2018-09-13T16:32:26","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=49131"},"modified":"2018-09-13T22:32:26","modified_gmt":"2018-09-13T16:32:26","slug":"%d0%bc%d0%b5%d0%b6%d1%81%d1%82%d1%80%d0%b0%d0%bd%d0%b8%d1%87%d0%bd%d0%b0%d1%8f-%d0%bd%d0%b0%d0%b2%d0%b8%d0%b3%d0%b0%d1%86%d0%b8%d1%8f","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=49131","title":{"rendered":"\u041c\u0435\u0436\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043d\u0430\u044f \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f"},"content":{"rendered":"<p>\u0414\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043c\u0435\u0436\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043d\u043e\u0439 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438, \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0443\u044e \u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e \u0441\u0430\u0439\u0442\u0430.<\/p>\n<p>\u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442 &#8212; \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0412\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 MySQL, \u0433\u0434\u0435 \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0441 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0432\u0435\u0441\u0442\u0438. \u0421\u0430\u043c\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u043f\u0430\u043f\u043a\u0435 \u0438\u043b\u0438 \u0432 \u0438\u043d\u0434\u0435\u043a\u0441\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435.<\/p>\n<p>\u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0430 blog, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 \u043f\u043e\u043b\u0435 blog_id \u2013 id \u043d\u043e\u043c\u0435\u0440 \u0441\u0442\u0430\u0442\u044c\u0438, \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u0435\u043b\u0430\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441 \u043a \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c\u0443 \u043d\u043e\u043c\u0435\u0440\u0443 id \u0441\u0442\u0430\u0442\u044c\u0438, \u0435\u0441\u043b\u0438 \u0435\u0433\u043e \u043d\u0435\u0442 (\u0441\u0442\u0430\u0442\u044c\u044f \u043c\u043e\u0433\u043b\u0430 \u0431\u044b\u0442\u044c \u0443\u0434\u0430\u043b\u0435\u043d\u0430) \u0442\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f $i \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0435\u0434\u0438\u043d\u0438\u0446\u0443, \u0438\u0449\u0435\u043c \u0441\u0442\u0430\u0442\u044c\u044e \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0435\u0434\u0448\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0439 \u0438 \u0442\u0430\u043a \u0434\u0430\u043b\u0435\u0435, \u043f\u043e\u043a\u0430 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0439\u0434\u0435\u043d\u0430 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f (\u0447\u0438\u0441\u043b\u043e \u0446\u0438\u043a\u043b\u043e\u0432 10). \u0422\u0430\u043a\u043e\u0439 \u0436\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u043f\u043e\u0438\u0441\u043a\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0430\u0442\u044c\u0438.<\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/09\/75988789047239.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-49132\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/09\/75988789047239.png\" alt=\"\" width=\"381\" height=\"59\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/09\/75988789047239.png 381w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2018\/09\/75988789047239-200x31.png 200w\" sizes=\"auto, (max-width: 381px) 100vw, 381px\" \/><\/a><\/p>\n<pre class=\"php\" style=\"font-family: monospace; font-size: 11px;\"><span style=\"color: #666666; font-style: italic;\">\/\/ \u043c\u0435\u0436\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043d\u0430\u044f \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f<\/span>\r\n<span style=\"color: #b1b100;\">for<\/span><span style=\"color: #009900;\">(<\/span><span style=\"color: #000088;\">$i<\/span><span style=\"color: #339933;\">=<\/span><span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #339933;\">;<\/span><span style=\"color: #000088;\">$i<\/span><span style=\"color: #339933;\">&lt;=<\/span><span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #339933;\">;<\/span><span style=\"color: #000088;\">$i<\/span><span style=\"color: #339933;\">++<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #009900;\">{<\/span>\r\n<span style=\"color: #000088;\">$resultr<\/span> <span style=\"color: #339933;\">=<\/span> <a href=\"http:\/\/www.php.net\/mysql_query\"><span style=\"color: #990000;\">mysql_query<\/span><\/a><span style=\"color: #009900;\">(<\/span><span style=\"color: #0000ff;\">\"SELECT blog_id FROM blog WHERE blog_id=\"<\/span><span style=\"color: #339933;\">.<\/span><span style=\"color: #009900;\">(<\/span><span style=\"color: #000088;\">$r<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #0000ff;\">'blog_id'<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #339933;\">-<\/span><span style=\"color: #000088;\">$i<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #000088;\">$left<\/span> <span style=\"color: #339933;\">=<\/span> <a href=\"http:\/\/www.php.net\/mysql_fetch_array\"><span style=\"color: #990000;\">mysql_fetch_array<\/span><\/a><span style=\"color: #009900;\">(<\/span><span style=\"color: #000088;\">$resultr<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #b1b100;\">if<\/span><span style=\"color: #009900;\">(<\/span><a href=\"http:\/\/www.php.net\/isset\"><span style=\"color: #990000;\">isset<\/span><\/a><span style=\"color: #009900;\">(<\/span><span style=\"color: #000088;\">$left<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #0000ff;\">'blog_id'<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #009900;\">{<\/span>\r\n<span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #0000ff;\">\" &lt;&lt; &lt;a href='..\/?blog_id=\"<\/span><span style=\"color: #339933;\">.<\/span><span style=\"color: #000088;\">$left<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #0000ff;\">'blog_id'<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #339933;\">.<\/span><span style=\"color: #0000ff;\">\"'&gt;\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f&lt;\/a&gt;\"<\/span><span style=\"color: #339933;\">;<\/span><span style=\"color: #000088;\">$i<\/span><span style=\"color: #339933;\">=<\/span><span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #339933;\">;<\/span><span style=\"color: #009900;\">}<\/span><span style=\"color: #009900;\">}<\/span>\r\n\u00a0\r\n<span style=\"color: #b1b100;\">for<\/span><span style=\"color: #009900;\">(<\/span><span style=\"color: #000088;\">$i<\/span><span style=\"color: #339933;\">=<\/span><span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #339933;\">;<\/span><span style=\"color: #000088;\">$i<\/span><span style=\"color: #339933;\">&lt;=<\/span><span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #339933;\">;<\/span><span style=\"color: #000088;\">$i<\/span><span style=\"color: #339933;\">++<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #009900;\">{<\/span>\r\n<span style=\"color: #000088;\">$resultr<\/span> <span style=\"color: #339933;\">=<\/span> <a href=\"http:\/\/www.php.net\/mysql_query\"><span style=\"color: #990000;\">mysql_query<\/span><\/a><span style=\"color: #009900;\">(<\/span><span style=\"color: #0000ff;\">\"SELECT blog_id FROM blog WHERE blog_id=\"<\/span><span style=\"color: #339933;\">.<\/span><span style=\"color: #009900;\">(<\/span><span style=\"color: #000088;\">$r<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #0000ff;\">'blog_id'<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #339933;\">+<\/span><span style=\"color: #000088;\">$i<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #000088;\">$right<\/span> <span style=\"color: #339933;\">=<\/span> <a href=\"http:\/\/www.php.net\/mysql_fetch_array\"><span style=\"color: #990000;\">mysql_fetch_array<\/span><\/a><span style=\"color: #009900;\">(<\/span><span style=\"color: #000088;\">$resultr<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #339933;\">;<\/span>\r\n<span style=\"color: #b1b100;\">if<\/span><span style=\"color: #009900;\">(<\/span><a href=\"http:\/\/www.php.net\/isset\"><span style=\"color: #990000;\">isset<\/span><\/a><span style=\"color: #009900;\">(<\/span><span style=\"color: #000088;\">$right<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #0000ff;\">'blog_id'<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #009900;\">)<\/span><span style=\"color: #009900;\">{<\/span>\r\n<span style=\"color: #b1b100;\">echo<\/span> <span style=\"color: #0000ff;\">\"&lt;a href='..\/?blog_id=\"<\/span><span style=\"color: #339933;\">.<\/span><span style=\"color: #000088;\">$right<\/span><span style=\"color: #009900;\">[<\/span><span style=\"color: #0000ff;\">'blog_id'<\/span><span style=\"color: #009900;\">]<\/span><span style=\"color: #339933;\">.<\/span><span style=\"color: #0000ff;\">\"'&gt;\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f&lt;\/a&gt; &gt;&gt; \"<\/span><span style=\"color: #339933;\">;<\/span><span style=\"color: #000088;\">$i<\/span><span style=\"color: #339933;\">=<\/span><span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #339933;\">;<\/span><span style=\"color: #009900;\">}<\/span><span style=\"color: #009900;\">}<\/span>\r\n<span style=\"color: #666666; font-style: italic;\">\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/<\/span><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u0414\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043c\u0435\u0436\u0441\u0442\u0440\u0430\u043d\u0438\u0447\u043d\u043e\u0439 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u0438, \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0443\u044e \u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0430\u0442\u044c\u044e \u0441\u0430\u0439\u0442\u0430. \u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442 &#8212; \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0412\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 MySQL, \u0433\u0434\u0435 \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0441 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0432\u0435\u0441\u0442\u0438. \u0421\u0430\u043c\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u043f\u0430\u043f\u043a\u0435 \u0438\u043b\u0438 \u0432 \u0438\u043d\u0434\u0435\u043a\u0441\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435. \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u0430 blog, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":49132,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[183],"tags":[],"class_list":["post-49131","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php"],"views":1350,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/49131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=49131"}],"version-history":[{"count":1,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/49131\/revisions"}],"predecessor-version":[{"id":49133,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/49131\/revisions\/49133"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/media\/49132"}],"wp:attachment":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=49131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=49131"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=49131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}