{"id":3126,"date":"2023-01-02T23:43:34","date_gmt":"2023-01-02T18:13:34","guid":{"rendered":"https:\/\/designcollection.in\/blog\/?p=3126"},"modified":"2024-11-23T15:14:51","modified_gmt":"2024-11-23T09:44:51","slug":"how-to-implement-pdo-in-our-script","status":"publish","type":"post","link":"https:\/\/designcollection.in\/blog\/how-to-implement-pdo-in-our-script\/","title":{"rendered":"How to Implement PDO in Script"},"content":{"rendered":"<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n    <meta charset=\"UTF-8\">\r\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\r\n    <meta name=\"description\" content=\"Learn how to implement PDO in PHP for secure database connections with prepared statements and error handling.\">\r\n    <title>How to Implement PDO in PHP<\/title>\r\n    <style>\r\n        body {\r\n            font-family: Arial, sans-serif;\r\n            line-height: 1.6;\r\n            margin: 0;\r\n            padding: 0;\r\n            background-color: #f9f9f9;\r\n        }\r\n        .container {\r\n            max-width: 800px;\r\n            margin: 20px auto;\r\n            padding: 20px;\r\n            background: #fff;\r\n            border-radius: 5px;\r\n            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);\r\n        }\r\n        h1, h2, h3 {\r\n            font-weight: bold;\r\n        }\r\n        ul {\r\n            padding-left: 20px;\r\n        }\r\n        ul li {\r\n            margin-bottom: 10px;\r\n        }\r\n        code {\r\n            display: block;\r\n            background: #f4f4f4;\r\n            padding: 10px;\r\n            border-left: 4px solid #007BFF;\r\n            margin: 20px 0;\r\n        }\r\n        a {\r\n            color: #007BFF;\r\n            text-decoration: none;\r\n        }\r\n        a:hover {\r\n            text-decoration: underline;\r\n        }\r\n    <\/style>\r\n<\/head>\r\n<body>\r\n    <div class=\"container\">\r\n        <h1>How to Implement PDO in PHP<\/h1>\r\n        <p>\r\n            PHP Data Objects (PDO) is a powerful database access abstraction layer that provides a secure and efficient way to interact with databases. It supports a wide variety of database systems, making it a versatile choice for developers. In this guide, we\u2019ll walk you through implementing PDO in your PHP scripts to enhance database operations. Whether you&#8217;re working on IT services, digital marketing platforms, or lead generation systems, PDO ensures secure and scalable database interactions.\r\n        <\/p>\r\n\r\n        <h2>What is PDO?<\/h2>\r\n        <p>\r\n            PDO stands for PHP Data Objects. It is a lightweight and consistent interface for accessing databases in PHP. Unlike older methods such as `mysqli`, PDO provides support for multiple database types and comes with built-in features like prepared statements and error handling. Learn more about how PDO works on our <a href=\"https:\/\/designcollection.in\/pdo-introduction\" target=\"_blank\" rel=\"noopener\">Introduction to PDO<\/a> page.\r\n        <\/p>\r\n\r\n        <h2>Why Should You Use PDO?<\/h2>\r\n        <p>\r\n            PDO offers several benefits that make it an essential tool for modern PHP development:\r\n        <\/p>\r\n        <ul>\r\n            <li><b>Database Compatibility:<\/b> PDO supports numerous database systems, including MySQL, PostgreSQL, SQLite, and more. Check out the full list of database drivers on our <a href=\"https:\/\/designcollection.in\/database-drivers\" target=\"_blank\" rel=\"noopener\">Database Drivers Guide<\/a>.<\/li>\r\n            <li><b>Security:<\/b> Its support for prepared statements helps prevent SQL injection attacks, enhancing application security. Learn more about protecting your applications from SQL injection on our <a href=\"https:\/\/designcollection.in\/sql-injection-prevention\" target=\"_blank\" rel=\"noopener\">SQL Injection Prevention Tips<\/a> page.<\/li>\r\n            <li><b>Maintainability:<\/b> PDO\u2019s unified API simplifies database operations, making code easier to maintain and extend.<\/li>\r\n        <\/ul>\r\n\r\n        <h2>Step 1: Setting Up Your Database<\/h2>\r\n        <p>\r\n            Before using PDO, you need to create a database. For this example, we\u2019ll use MySQL to create a database and a table to store user information. For a detailed tutorial, visit our <a href=\"https:\/\/designcollection.in\/mysql-database-setup\" target=\"_blank\" rel=\"noopener\">MySQL Database Setup Guide<\/a>.\r\n        <\/p>\r\n        <code>\r\nCREATE DATABASE pdo_demo;\r\n\r\nUSE pdo_demo;\r\n\r\nCREATE TABLE users (\r\n    id INT AUTO_INCREMENT PRIMARY KEY,\r\n    name VARCHAR(100) NOT NULL,\r\n    email VARCHAR(150) NOT NULL,\r\n    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP\r\n);\r\n        <\/code>\r\n        <p>\r\n            Insert sample data into the `users` table:\r\n        <\/p>\r\n        <code>\r\nINSERT INTO users (name, email) VALUES \r\n('John Doe', 'john@example.com'),\r\n('Jane Smith', 'jane@example.com');\r\n        <\/code>\r\n        <p>\r\n            This sample data will be used to test database operations with PDO.\r\n        <\/p>\r\n\r\n        <h2>Step 2: Establishing a Database Connection<\/h2>\r\n        <p>\r\n            To connect to your database using PDO, you need to create a PDO instance with the database credentials. Below is a simple example:\r\n        <\/p>\r\n        <code>\r\n&lt;?php\r\n$host = 'localhost';\r\n$dbname = 'pdo_demo';\r\n$username = 'root';\r\n$password = '';\r\n\r\ntry {\r\n    $pdo = new PDO(\"mysql:host=$host;dbname=$dbname\", $username, $password);\r\n    $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\r\n    echo \"Connected successfully!\";\r\n} catch (PDOException $e) {\r\n    die(\"Connection failed: \" . $e->getMessage());\r\n}\r\n?&gt;\r\n        <\/code>\r\n        <p>\r\n            This script initializes a PDO instance and sets error handling to `ERRMODE_EXCEPTION`. Learn more about establishing PDO connections in our <a href=\"https:\/\/designcollection.in\/pdo-connections\" target=\"_blank\" rel=\"noopener\">PDO Connections Tutorial<\/a>.\r\n        <\/p>\r\n\r\n        <h2>Step 3: Fetching Data Using PDO<\/h2>\r\n        <p>\r\n            Once connected, you can retrieve data from the database using the `query` method. Here\u2019s an example of fetching all users from the `users` table:\r\n        <\/p>\r\n        <code>\r\n&lt;?php\r\n$sql = \"SELECT * FROM users\";\r\n$stmt = $pdo->query($sql);\r\n\r\nwhile ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {\r\n    echo \"Name: \" . $row['name'] . \", Email: \" . $row['email'] . \"&lt;br&gt;\";\r\n}\r\n?&gt;\r\n        <\/code>\r\n        <p>\r\n            The `fetch()` method retrieves rows from the query, and `FETCH_ASSOC` returns them as an associative array. Learn more about fetching data with PDO on our <a href=\"https:\/\/designcollection.in\/pdo-fetch-data\" target=\"_blank\" rel=\"noopener\">Fetching Data with PDO<\/a> page.\r\n        <\/p>\r\n\r\n        <h2>Conclusion<\/h2>\r\n        <p>\r\n            Implementing PDO in your PHP scripts improves the security, efficiency, and maintainability of your database operations. From connecting to a database and running queries to securing your application with prepared statements, PDO is an essential tool for modern web development. For more tutorials, visit our <a href=\"https:\/\/designcollection.in\/php-tutorials\" target=\"_blank\" rel=\"noopener\">PHP Tutorials<\/a> section and take your development skills to the next level!\r\n        <\/p>\r\n    <\/div>\r\n<\/body>\r\n<\/html>\r\n","protected":false},"excerpt":{"rendered":"<p>How to Implement PDO in PHP How to Implement PDO in PHP PHP Data Objects (PDO) is a powerful database access abstraction layer that provides a secure and efficient way to interact with databases. It supports a wide variety of database systems, making it a versatile choice for developers. In this guide, we\u2019ll walk you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6477,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[282],"tags":[350,303,301,304,302],"class_list":["post-3126","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php","tag-mysql","tag-pdo-structure","tag-php-data-object","tag-secure","tag-what-is-pdo"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.13 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Implement PDO in PHP for Secure Database Connections<\/title>\n<meta name=\"description\" content=\"Learn to implement PDO in PHP for secure database connections. Use prepared statements, handle errors, and run efficient database queries.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/designcollection.in\/blog\/how-to-implement-pdo-in-our-script\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Implement PDO in PHP for Secure Database Connections\" \/>\n<meta property=\"og:description\" content=\"Learn to implement PDO in PHP for secure database connections. Use prepared statements, handle errors, and run efficient database queries.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/designcollection.in\/blog\/how-to-implement-pdo-in-our-script\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog is an ocean of knowledge\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/designcollection.in\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-02T18:13:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-23T09:44:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/designcollection.in\/blog\/wp-content\/uploads\/2023\/01\/Do-Business-3.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"1000\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"designcollection\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"designcollection\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/designcollection.in\/blog\/how-to-implement-pdo-in-our-script\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/designcollection.in\/blog\/how-to-implement-pdo-in-our-script\/\"},\"author\":{\"name\":\"designcollection\",\"@id\":\"https:\/\/designcollection.in\/blog\/#\/schema\/person\/612562f8760f1b42e074b2a2e84bdd67\"},\"headline\":\"How to Implement PDO in Script\",\"datePublished\":\"2023-01-02T18:13:34+00:00\",\"dateModified\":\"2024-11-23T09:44:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/designcollection.in\/blog\/how-to-implement-pdo-in-our-script\/\"},\"wordCount\":473,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/designcollection.in\/blog\/#organization\"},\"keywords\":[\"MYSQL\",\"PDO Structure\",\"PHP Data Object\",\"Secure\",\"What is PDO\"],\"articleSection\":[\"PHP\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/designcollection.in\/blog\/how-to-implement-pdo-in-our-script\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/designcollection.in\/blog\/how-to-implement-pdo-in-our-script\/\",\"url\":\"https:\/\/designcollection.in\/blog\/how-to-implement-pdo-in-our-script\/\",\"name\":\"How to Implement PDO in PHP for Secure Database Connections\",\"isPartOf\":{\"@id\":\"https:\/\/designcollection.in\/blog\/#website\"},\"datePublished\":\"2023-01-02T18:13:34+00:00\",\"dateModified\":\"2024-11-23T09:44:51+00:00\",\"description\":\"Learn to implement PDO in PHP for secure database connections. Use prepared statements, handle errors, and run efficient database queries.\",\"breadcrumb\":{\"@id\":\"https:\/\/designcollection.in\/blog\/how-to-implement-pdo-in-our-script\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/designcollection.in\/blog\/how-to-implement-pdo-in-our-script\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/designcollection.in\/blog\/how-to-implement-pdo-in-our-script\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/designcollection.in\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Implement PDO in Script\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/designcollection.in\/blog\/#website\",\"url\":\"https:\/\/designcollection.in\/blog\/\",\"name\":\"Design Collection\",\"description\":\"Technology Tips, Tutorials, Learning &amp; How to Guides\",\"publisher\":{\"@id\":\"https:\/\/designcollection.in\/blog\/#organization\"},\"alternateName\":\"IT Services | Best Lead Generation Company In Indore - Design Collection\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/designcollection.in\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/designcollection.in\/blog\/#organization\",\"name\":\"Design Collection\",\"alternateName\":\"IT Services | Best Lead Generation Company In Indore - Design Collection\",\"url\":\"https:\/\/designcollection.in\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/designcollection.in\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/designcollection.in\/blog\/wp-content\/uploads\/2022\/12\/design-collection.png\",\"contentUrl\":\"https:\/\/designcollection.in\/blog\/wp-content\/uploads\/2022\/12\/design-collection.png\",\"width\":240,\"height\":41,\"caption\":\"Design Collection\"},\"image\":{\"@id\":\"https:\/\/designcollection.in\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/designcollection.in\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/designcollection.in\/blog\/#\/schema\/person\/612562f8760f1b42e074b2a2e84bdd67\",\"name\":\"designcollection\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/designcollection.in\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e791d735751a16b72683b42279ea62b4bcfcbe6dd200da2f7240cdeae878c3ff?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e791d735751a16b72683b42279ea62b4bcfcbe6dd200da2f7240cdeae878c3ff?s=96&d=mm&r=g\",\"caption\":\"designcollection\"},\"sameAs\":[\"https:\/\/designcollection.in\/blog\/\"],\"url\":\"https:\/\/designcollection.in\/blog\/author\/designcollection\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Implement PDO in PHP for Secure Database Connections","description":"Learn to implement PDO in PHP for secure database connections. Use prepared statements, handle errors, and run efficient database queries.","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:\/\/designcollection.in\/blog\/how-to-implement-pdo-in-our-script\/","og_locale":"en_US","og_type":"article","og_title":"How to Implement PDO in PHP for Secure Database Connections","og_description":"Learn to implement PDO in PHP for secure database connections. Use prepared statements, handle errors, and run efficient database queries.","og_url":"https:\/\/designcollection.in\/blog\/how-to-implement-pdo-in-our-script\/","og_site_name":"Blog is an ocean of knowledge","article_publisher":"https:\/\/www.facebook.com\/designcollection.in","article_published_time":"2023-01-02T18:13:34+00:00","article_modified_time":"2024-11-23T09:44:51+00:00","og_image":[{"width":1200,"height":1000,"url":"https:\/\/designcollection.in\/blog\/wp-content\/uploads\/2023\/01\/Do-Business-3.jpg","type":"image\/jpeg"}],"author":"designcollection","twitter_card":"summary_large_image","twitter_misc":{"Written by":"designcollection","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/designcollection.in\/blog\/how-to-implement-pdo-in-our-script\/#article","isPartOf":{"@id":"https:\/\/designcollection.in\/blog\/how-to-implement-pdo-in-our-script\/"},"author":{"name":"designcollection","@id":"https:\/\/designcollection.in\/blog\/#\/schema\/person\/612562f8760f1b42e074b2a2e84bdd67"},"headline":"How to Implement PDO in Script","datePublished":"2023-01-02T18:13:34+00:00","dateModified":"2024-11-23T09:44:51+00:00","mainEntityOfPage":{"@id":"https:\/\/designcollection.in\/blog\/how-to-implement-pdo-in-our-script\/"},"wordCount":473,"commentCount":0,"publisher":{"@id":"https:\/\/designcollection.in\/blog\/#organization"},"keywords":["MYSQL","PDO Structure","PHP Data Object","Secure","What is PDO"],"articleSection":["PHP"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/designcollection.in\/blog\/how-to-implement-pdo-in-our-script\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/designcollection.in\/blog\/how-to-implement-pdo-in-our-script\/","url":"https:\/\/designcollection.in\/blog\/how-to-implement-pdo-in-our-script\/","name":"How to Implement PDO in PHP for Secure Database Connections","isPartOf":{"@id":"https:\/\/designcollection.in\/blog\/#website"},"datePublished":"2023-01-02T18:13:34+00:00","dateModified":"2024-11-23T09:44:51+00:00","description":"Learn to implement PDO in PHP for secure database connections. Use prepared statements, handle errors, and run efficient database queries.","breadcrumb":{"@id":"https:\/\/designcollection.in\/blog\/how-to-implement-pdo-in-our-script\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/designcollection.in\/blog\/how-to-implement-pdo-in-our-script\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/designcollection.in\/blog\/how-to-implement-pdo-in-our-script\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/designcollection.in\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Implement PDO in Script"}]},{"@type":"WebSite","@id":"https:\/\/designcollection.in\/blog\/#website","url":"https:\/\/designcollection.in\/blog\/","name":"Design Collection","description":"Technology Tips, Tutorials, Learning &amp; How to Guides","publisher":{"@id":"https:\/\/designcollection.in\/blog\/#organization"},"alternateName":"IT Services | Best Lead Generation Company In Indore - Design Collection","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/designcollection.in\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/designcollection.in\/blog\/#organization","name":"Design Collection","alternateName":"IT Services | Best Lead Generation Company In Indore - Design Collection","url":"https:\/\/designcollection.in\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/designcollection.in\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/designcollection.in\/blog\/wp-content\/uploads\/2022\/12\/design-collection.png","contentUrl":"https:\/\/designcollection.in\/blog\/wp-content\/uploads\/2022\/12\/design-collection.png","width":240,"height":41,"caption":"Design Collection"},"image":{"@id":"https:\/\/designcollection.in\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/designcollection.in"]},{"@type":"Person","@id":"https:\/\/designcollection.in\/blog\/#\/schema\/person\/612562f8760f1b42e074b2a2e84bdd67","name":"designcollection","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/designcollection.in\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e791d735751a16b72683b42279ea62b4bcfcbe6dd200da2f7240cdeae878c3ff?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e791d735751a16b72683b42279ea62b4bcfcbe6dd200da2f7240cdeae878c3ff?s=96&d=mm&r=g","caption":"designcollection"},"sameAs":["https:\/\/designcollection.in\/blog\/"],"url":"https:\/\/designcollection.in\/blog\/author\/designcollection\/"}]}},"_links":{"self":[{"href":"https:\/\/designcollection.in\/blog\/wp-json\/wp\/v2\/posts\/3126","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/designcollection.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/designcollection.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/designcollection.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/designcollection.in\/blog\/wp-json\/wp\/v2\/comments?post=3126"}],"version-history":[{"count":43,"href":"https:\/\/designcollection.in\/blog\/wp-json\/wp\/v2\/posts\/3126\/revisions"}],"predecessor-version":[{"id":6478,"href":"https:\/\/designcollection.in\/blog\/wp-json\/wp\/v2\/posts\/3126\/revisions\/6478"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/designcollection.in\/blog\/wp-json\/wp\/v2\/media\/6477"}],"wp:attachment":[{"href":"https:\/\/designcollection.in\/blog\/wp-json\/wp\/v2\/media?parent=3126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/designcollection.in\/blog\/wp-json\/wp\/v2\/categories?post=3126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/designcollection.in\/blog\/wp-json\/wp\/v2\/tags?post=3126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}