
{"id":5949,"date":"2011-09-20T20:05:15","date_gmt":"2011-09-20T20:05:15","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=5949"},"modified":"2011-09-20T20:05:15","modified_gmt":"2011-09-20T20:05:15","slug":"php-september-21-2011","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2011\/09\/20\/php-september-21-2011\/","title":{"rendered":"[ php ] september 21 2011"},"content":{"rendered":"<h5><u> PHP Code <\/u><\/h5>\n<p><code><br \/>\n$con = mysql_connect(\"localhost\",\"db name\",\"password\");<br \/>\n<\/code><br \/>\n<\/p>\n<h5><u> Code Dissection <\/u><\/h5>\n<pre>\n1. $con --- Variable. All variables in PHP start with a $symbol .\n2. mysql_connect() --- A PHP function .\nThis function help to connect to the database and get access.\n\nresource mysql_connect ([ string $server = ini_get(\"mysql.default_host\") [, string $username = ini_get(\"mysql.default_user\") [, string $password = ini_get(\"mysql.default_password\") [, bool $new_link = false [, int $client_flags = 0 ]]]]] )\nOpens or reuses a connection to a MySQL server.\n<\/pre>\n<p>source : http:\/\/php.net\/manual\/en\/function.mysql-connect.php<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP Code $con = mysql_connect(&#8220;localhost&#8221;,&#8221;db name&#8221;,&#8221;password&#8221;); Code Dissection 1. $con &#8212; Variable. All variables in PHP start with a $symbol . 2. mysql_connect() &#8212; A PHP function . This function help to connect to the database and get access. resource mysql_connect ([ string $server = ini_get(&#8220;mysql.default_host&#8221;) [, string $username = ini_get(&#8220;mysql.default_user&#8221;) [, string $password = &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2011\/09\/20\/php-september-21-2011\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;[ php ] september 21 2011&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/5949"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=5949"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/5949\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=5949"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=5949"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=5949"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}