{"id":1435,"date":"2018-05-30T12:47:48","date_gmt":"2018-05-30T09:47:48","guid":{"rendered":"https:\/\/burakcaliskan.org\/blog\/?p=1435"},"modified":"2018-05-31T16:40:29","modified_gmt":"2018-05-31T13:40:29","slug":"php-mysql-baglantisi","status":"publish","type":"post","link":"https:\/\/burakcaliskan.org\/blog\/php-mysql-baglantisi\/","title":{"rendered":"PHP MySQL Ba\u011flant\u0131s\u0131"},"content":{"rendered":"<p>$host=&#8221;192.168.1.10&#8243;;<br \/>\n$db=&#8221;database_adi&#8221;;<br \/>\n$user=&#8221;database_kullanici&#8221;;<br \/>\n$pass=&#8221;db_sifre&#8221;;<br \/>\n$conn=@mysql_connect($host,$user,$pass) or die(&#8220;Mysql Baglanamadi&#8221;);<\/p>\n<p>mysql_query(&#8220;INSERT INTO tablo(ad,soyad,zaman) VALUES(&#8216;a&#8217;,&#8217;b&#8217;,now()) ON DUPLICATE KEY UPDATE ad= &#8216;burak&#8217; , zaman=now() &#8220;);<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>veya<\/p>\n<p>&nbsp;<\/p>\n<p>$dbhost=&#8221;192.168.1.10&#8243;;<br \/>\n$dbuser=&#8221;database_kullanici&#8221;;<br \/>\n$dbpassword=&#8221;db_sifre&#8221;;<br \/>\n$dbname=&#8221;database_adi&#8221;;<\/p>\n<p>$baglan=mysql_connect($dbhost,$dbuser,$dbpassword) or die (&#8220;MySQL Baglantisi kurulamadi.&#8221;);<br \/>\nmysql_select_db($dbname,$baglan) or die (&#8220;Veritabani baglantisi kurulamadi&#8221;);<br \/>\nmysql_query(&#8220;SET NAMES UTF8&#8221;);<\/p>\n","protected":false},"excerpt":{"rendered":"<p>$host=&#8221;192.168.1.10&#8243;; $db=&#8221;database_adi&#8221;; $user=&#8221;database_kullanici&#8221;; $pass=&#8221;db_sifre&#8221;; $conn=@mysql_connect($host,$user,$pass) or die(&#8220;Mysql Baglanamadi&#8221;); mysql_query(&#8220;INSERT INTO tablo(ad,soyad,zaman) VALUES(&#8216;a&#8217;,&#8217;b&#8217;,now()) ON DUPLICATE KEY UPDATE ad= &#8216;burak&#8217; , zaman=now() &#8220;); &nbsp; &nbsp; veya &nbsp; $dbhost=&#8221;192.168.1.10&#8243;; $dbuser=&#8221;database_kullanici&#8221;; $dbpassword=&#8221;db_sifre&#8221;; $dbname=&#8221;database_adi&#8221;; $baglan=mysql_connect($dbhost,$dbuser,$dbpassword) or die (&#8220;MySQL Baglantisi kurulamadi.&#8221;); mysql_select_db($dbname,$baglan) or die (&#8220;Veritabani baglantisi kurulamadi&#8221;); mysql_query(&#8220;SET NAMES UTF8&#8221;);<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[75,22],"tags":[],"_links":{"self":[{"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/posts\/1435"}],"collection":[{"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/comments?post=1435"}],"version-history":[{"count":2,"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/posts\/1435\/revisions"}],"predecessor-version":[{"id":1448,"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/posts\/1435\/revisions\/1448"}],"wp:attachment":[{"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/media?parent=1435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/categories?post=1435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/tags?post=1435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}