{"id":350,"date":"2018-12-12T09:11:00","date_gmt":"2018-12-12T03:41:00","guid":{"rendered":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL.png"},"modified":"2018-12-12T09:11:00","modified_gmt":"2018-12-12T03:41:00","slug":"how-to-connect-database-using-php-and-mysql-2","status":"inherit","type":"attachment","link":"https:\/\/mediastroke.com\/blog\/how-to-connect-database-using-php-and-mysql-2\/","title":{"rendered":"How-to-connect-database-using-PHP-and-MySQL"},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":[],"class_list":["post-350","attachment","type-attachment","status-inherit","hentry"],"yoast_head":"\nHow-to-connect-database-using-PHP-and-MySQL -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL.png\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How-to-connect-database-using-PHP-and-MySQL -\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL.png\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/mediastroke\" \/>\n<meta property=\"og:image\" content=\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@mediastrokehost\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL.png\",\"url\":\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL.png\",\"name\":\"How-to-connect-database-using-PHP-and-MySQL -\",\"isPartOf\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/#website\"},\"datePublished\":\"2018-12-12T03:41:00+00:00\",\"dateModified\":\"2018-12-12T03:41:00+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL.png#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL.png\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL.png#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/mediastroke.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How-to-connect-database-using-PHP-and-MySQL\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/mediastroke.com\/blog\/#website\",\"url\":\"https:\/\/mediastroke.com\/blog\/\",\"name\":\"\",\"description\":\"Web Hosting Provider\",\"publisher\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/mediastroke.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/mediastroke.com\/blog\/#organization\",\"name\":\"MediaStroke\",\"url\":\"https:\/\/mediastroke.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/mediastroke.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2024\/03\/mediastroke-white-logo-blog-50h.png\",\"contentUrl\":\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2024\/03\/mediastroke-white-logo-blog-50h.png\",\"width\":320,\"height\":50,\"caption\":\"MediaStroke\"},\"image\":{\"@id\":\"https:\/\/mediastroke.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/mediastroke\",\"https:\/\/x.com\/mediastrokehost\",\"https:\/\/www.linkedin.com\/company\/mediastroke-servers\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How-to-connect-database-using-PHP-and-MySQL -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL.png","og_locale":"en_US","og_type":"article","og_title":"How-to-connect-database-using-PHP-and-MySQL -","og_url":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL.png","article_publisher":"https:\/\/www.facebook.com\/mediastroke","og_image":[{"width":1200,"height":630,"url":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_site":"@mediastrokehost","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL.png","url":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL.png","name":"How-to-connect-database-using-PHP-and-MySQL -","isPartOf":{"@id":"https:\/\/mediastroke.com\/blog\/#website"},"datePublished":"2018-12-12T03:41:00+00:00","dateModified":"2018-12-12T03:41:00+00:00","breadcrumb":{"@id":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL.png#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL.png"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL.png#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mediastroke.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How-to-connect-database-using-PHP-and-MySQL"}]},{"@type":"WebSite","@id":"https:\/\/mediastroke.com\/blog\/#website","url":"https:\/\/mediastroke.com\/blog\/","name":"","description":"Web Hosting Provider","publisher":{"@id":"https:\/\/mediastroke.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mediastroke.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/mediastroke.com\/blog\/#organization","name":"MediaStroke","url":"https:\/\/mediastroke.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mediastroke.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2024\/03\/mediastroke-white-logo-blog-50h.png","contentUrl":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2024\/03\/mediastroke-white-logo-blog-50h.png","width":320,"height":50,"caption":"MediaStroke"},"image":{"@id":"https:\/\/mediastroke.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/mediastroke","https:\/\/x.com\/mediastrokehost","https:\/\/www.linkedin.com\/company\/mediastroke-servers"]}]}},"description":{"rendered":"<p class=\"attachment\"><a href='https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL.png'><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"158\" src=\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL-300x158.png\" class=\"attachment-medium size-medium\" alt=\"\" srcset=\"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL-300x158.png 300w, https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL-768x403.png 768w, https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL-1024x538.png 1024w, https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL.png 1200w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n"},"caption":{"rendered":""},"alt_text":"","media_type":"image","mime_type":"image\/png","media_details":{"width":1200,"height":630,"file":"2018\/12\/How-to-connect-database-using-PHP-and-MySQL.png","sizes":{"thumbnail":{"file":"How-to-connect-database-using-PHP-and-MySQL-150x150.png","width":150,"height":150,"mime_type":"image\/png","source_url":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL-150x150.png"},"medium":{"file":"How-to-connect-database-using-PHP-and-MySQL-300x158.png","width":300,"height":158,"mime_type":"image\/png","source_url":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL-300x158.png"},"medium_large":{"file":"How-to-connect-database-using-PHP-and-MySQL-768x403.png","width":768,"height":403,"mime_type":"image\/png","source_url":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL-768x403.png"},"large":{"file":"How-to-connect-database-using-PHP-and-MySQL-1024x538.png","width":1024,"height":538,"mime_type":"image\/png","source_url":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL-1024x538.png"},"post-thumbnail":{"file":"How-to-connect-database-using-PHP-and-MySQL-900x480.png","width":900,"height":480,"mime_type":"image\/png","source_url":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL-900x480.png"},"treville-thumbnail-small":{"file":"How-to-connect-database-using-PHP-and-MySQL-130x100.png","width":130,"height":100,"mime_type":"image\/png","source_url":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL-130x100.png"},"treville-thumbnail-medium":{"file":"How-to-connect-database-using-PHP-and-MySQL-360x200.png","width":360,"height":200,"mime_type":"image\/png","source_url":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL-360x200.png"},"treville-thumbnail-large":{"file":"How-to-connect-database-using-PHP-and-MySQL-450x250.png","width":450,"height":250,"mime_type":"image\/png","source_url":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL-450x250.png"},"full":{"file":"How-to-connect-database-using-PHP-and-MySQL.png","width":1200,"height":630,"mime_type":"image\/png","source_url":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL.png"}},"image_meta":{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0","keywords":[]}},"post":null,"source_url":"https:\/\/mediastroke.com\/blog\/wp-content\/uploads\/2018\/12\/How-to-connect-database-using-PHP-and-MySQL.png","_links":{"self":[{"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/media\/350"}],"collection":[{"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/media"}],"about":[{"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/types\/attachment"}],"author":[{"embeddable":true,"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/mediastroke.com\/blog\/wp-json\/wp\/v2\/comments?post=350"}]}}