{"id":2380,"date":"2015-10-13T18:11:58","date_gmt":"2015-10-13T16:11:58","guid":{"rendered":"http:\/\/10.1.1.10:8080\/wordpress\/?page_id=2380"},"modified":"2015-10-13T18:11:58","modified_gmt":"2015-10-13T16:11:58","slug":"kniha-posty-2","status":"publish","type":"page","link":"https:\/\/sei.gov.cz\/?page_id=2380","title":{"rendered":"Kniha Po\u0161ty"},"content":{"rendered":"[insert_php]\n<p>\t\/\/Prom\u011bnn\u00e9 pro p\u0159\u00edstup<br \/>\n\t$Server = &#8218;localhost&#8216;;<br \/>\n\t$Uzivatel = &#8218;wordpress&#8216;;<\/p>\n<p>$Heslo = &#8218;wordpress&#8216;;<br \/>\n\t$DB = &#8218;call_list&#8216;;<\/p>\n<p>\t\/\/P\u0159ipojen\u00ed k DB<\/p>\n<p>$C = mysqli_connect(&#8222;$Server&#8220;, &#8222;$Uzivatel&#8220;, &#8222;$Heslo&#8220;);<\/p>\n<p>\t\/\/V\u00fdb\u011br DB.<\/p>\n<p>mysqli_select_db($C, $DB);<\/p>\n<p>\t\t\t\t\/\/Dotaz<\/p>\n<p>$Q = (&#8222;SELECT Funkce, Jmeno, Email, Telefon FROM tb_call_list&#8220;);<\/p>\n<p>\t\/\/Zpracov\u00e1n\u00ed dotazu a jeho p\u0159i\u0159azen\u00ed do prom\u011bnn\u00e9.<\/p>\n<p>$Vysledek = mysqli_query($C, $Q);<\/p>\n<p>\t\/\/V\u00fdpis jednotliv\u00fdch v\u00fdsledk\u016f.<\/p>\n<p>while($Row = mysqli_fetch_array($Vysledek))<\/p>\n<p>{<br \/>\n\t\techo $Row[&#8218;Funkce&#8216;] . &#8220; &#8220; . $Row[&#8218;Jmeno&#8216;] . &#8220; &#8220; . $Row[&#8218;Email&#8216;] . &#8220; &#8220; . $Row[&#8218;Telefon&#8216;];<br \/>\n\t\techo &#8222;<br \/>&#8222;;<br \/>\n\t}<\/p>\n<p>\t\/\/Uzav\u0159en\u00ed spojen\u00ed s DB.<br \/>\n\tmysqli_close($C);<\/p>\n[\/insert_php]\n","protected":false},"excerpt":{"rendered":"<p>[insert_php] \/\/Prom\u011bnn\u00e9 pro p\u0159\u00edstup $Server = &#8218;localhost&#8216;; $Uzivatel = &#8218;wordpress&#8216;; $Heslo = &#8218;wordpress&#8216;; $DB = &#8218;call_list&#8216;; \/\/P\u0159ipojen\u00ed k DB $C = mysqli_connect(&#8222;$Server&#8220;, &#8222;$Uzivatel&#8220;, &#8222;$Heslo&#8220;); \/\/V\u00fdb\u011br DB. mysqli_select_db($C, $DB); \/\/Dotaz $Q = (&#8222;SELECT Funkce, Jmeno, Email, Telefon FROM tb_call_list&#8220;); \/\/Zpracov\u00e1n\u00ed dotazu a jeho p\u0159i\u0159azen\u00ed do prom\u011bnn\u00e9. $Vysledek = mysqli_query($C, $Q); \/\/V\u00fdpis jednotliv\u00fdch v\u00fdsledk\u016f. while($Row = mysqli_fetch_array($Vysledek)) &hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"mailbook.php","meta":{"footnotes":""},"class_list":["post-2380","page","type-page","status-publish","hentry","latest_post"],"_links":{"self":[{"href":"https:\/\/sei.gov.cz\/index.php?rest_route=\/wp\/v2\/pages\/2380","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sei.gov.cz\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sei.gov.cz\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sei.gov.cz\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sei.gov.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2380"}],"version-history":[{"count":0,"href":"https:\/\/sei.gov.cz\/index.php?rest_route=\/wp\/v2\/pages\/2380\/revisions"}],"wp:attachment":[{"href":"https:\/\/sei.gov.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2380"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}