Skip to main content

🚀 In our NEW AI Bootcamp you'll build a working app in 28 days, no experience required. Free to all subscription levels.

✨ Earn college credits in Cybersecurity, JS, HTML, CSS and Python

Join the Treehouse affiliate program and earn 25% recurring commission! 🤑

  • Treehouse Logo
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
    • All Courses
    • Tracks
    • AI Bootcamp
    • College Credit
    • Techdegree Bootcamps
    • Front End Development
    • Full Stack JavaScript
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
    • Explore
    • Career Toolbox
    • Free Treehouse Near Me
    • Affiliates
    • Blog
    • Support
    • About
    • Learn
    • Beginner's Guide to Coding
    • Data Analysis with SQL & Python
    • Front-End Web Development
    • Python Programming Basics
    • Techdegree Bootcamp Overview
    • UX Design Fundamentals
    • AI Tools for Beginners
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks AI Bootcamp College Credit
  • Techdegree Bootcamps Front End Web Development Full Stack JavaScript
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Explore Career Toolbox Free Treehouse Near Me Affiliates Blog Support About
    Learn Beginner's Guide to Coding Data Analysis with SQL & Python Front-End Web Development Python Programming Basics Techdegree Bootcamp Overview UX Design Fundamentals AI Tools for Beginners
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
Loading banner... Start your free trial at Treehouse
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • APIs
      • • Coding for Kids
      • • College Credit
      • • Computer Science
      • • CSS
      • • Data Analysis
      • • Databases
      • • Design
      • • Development Tools
      • • Digital Literacy
      • • Game Development
      • • Go Language
      • • HTML
      • • Java
      • • JavaScript
      • • Learning Resources
      • • Machine Learning
      • • No-Code
      • • PHP
      • • Professional Growth
      • • Python
      • • Quality Assurance
      • • React
      • • Ruby
      • • Security
      • • Swift
      • • Vibe Coding
  • Konstantinos Chaitas
    Konstantinos Chaitas
    2,566 Points

    PHP with MYSQL

    Posted July 9, 2016 4:51pm by Konstantinos Chaitas
    Konstantinos Chaitas
    2,566 Points
    • PHP
    • Using PHP with MySQL
    • Connecting PHP to MySQL
    • Getting Started with PDO

    0 Answers

  • Carla Hiner
    Carla Hiner
    7,656 Points

    What text editor do I use to open the htdocs? Do I have to download Netbeans or Eclipse?

    Posted April 25, 2016 3:57pm by Carla Hiner
    Carla Hiner
    7,656 Points
    • PHP
    • Using PHP with MySQL
    • Connecting PHP to MySQL
    • Getting Started with PDO

    3 Answers

  • Carla Hiner
    Carla Hiner
    7,656 Points

    How do I open htdocs directory? No launch pad. Using PHP with MySQL. Getting Started with PDO. Downloaded files.

    Posted April 23, 2016 5:27pm by Carla Hiner
    Carla Hiner
    7,656 Points
    • PHP
    • Using PHP with MySQL
    • Connecting PHP to MySQL
    • Getting Started with PDO

    2 Answers

  • Jason Chiu
    Jason Chiu
    4,373 Points

    A fatal problem to connect to mysql database with PDO class

    Posted April 13, 2015 11:55am by Jason Chiu
    Jason Chiu
    4,373 Points
    • Development Tools
    • Using PHP with MySQL
    • Connecting PHP to MySQL
    • Getting Started with PDO

    2 Answers

  • Chris Komaroff
    PLUS
    Chris Komaroff
    Courses Plus Student 14,199 Points

    Hello, I am not able to render database.php in my Chrome browser using my Mac

    Posted March 1, 2015 2:11am by Chris Komaroff
    Chris Komaroff
    Courses Plus Student 14,199 Points
    • Development Tools
    • Using PHP with MySQL
    • Connecting PHP to MySQL
    • Getting Started with PDO

    3 Answers

  • Chris Martinez
    Chris Martinez
    11,715 Points

    access denied

    Posted February 18, 2015 8:29am by Chris Martinez
    Chris Martinez
    11,715 Points
    • Development Tools
    • Using PHP with MySQL
    • Connecting PHP to MySQL
    • Getting Started with PDO

    1 Answer

  • saranyamoellers
    saranyamoellers
    32,649 Points

    Fatal error: Class 'PDO' not found in... I can't connect to database?

    Posted December 18, 2014 2:09am by saranyamoellers
    saranyamoellers
    32,649 Points
    • Development Tools
    • Using PHP with MySQL
    • Connecting PHP to MySQL
    • Getting Started with PDO

    2 Answers

  • Issavara Polanun
    Issavara Polanun
    5,480 Points

    Can't open the website in my server

    Posted November 5, 2014 7:34pm by Issavara Polanun
    Issavara Polanun
    5,480 Points
    • Development Tools
    • Using PHP with MySQL
    • Connecting PHP to MySQL
    • Getting Started with PDO

    1 Answer

  • Trevor Rounce
    Trevor Rounce
    27,813 Points

    Can Not Connect To The Database?

    Posted October 28, 2014 12:30am by Trevor Rounce
    Trevor Rounce
    27,813 Points
    • PHP
    • Using PHP with MySQL
    • Connecting PHP to MySQL
    • Getting Started with PDO

    4 Answers

  • Jun XIE
    Jun XIE
    10,363 Points

    can not connect to the database and shows access forbidden

    Posted July 25, 2014 7:24am by Jun XIE
    Jun XIE
    10,363 Points
    • PHP
    • Using PHP with MySQL
    • Connecting PHP to MySQL
    • Getting Started with PDO

    1 Answer

  • qdzfplofsk
    qdzfplofsk
    22,025 Points

    Database connect error using PDO

    Posted July 9, 2014 7:29pm by qdzfplofsk
    qdzfplofsk
    22,025 Points
    • PHP
    • Using PHP with MySQL
    • Connecting PHP to MySQL
    • Getting Started with PDO

    13 Answers

  • Marcel Neuenhaus
    Marcel Neuenhaus
    723 Points

    Connecting PHP to MySQL

    Posted June 16, 2014 11:52am by Marcel Neuenhaus
    Marcel Neuenhaus
    723 Points
    • PHP
    • Using PHP with MySQL
    • Connecting PHP to MySQL
    • Getting Started with PDO

    10 Answers

  • KnowledgeWoods Consulting
    KnowledgeWoods Consulting
    5,607 Points

    How to Restrict Duplicate Entries in Database?

    Posted June 5, 2014 8:15am by KnowledgeWoods Consulting
    KnowledgeWoods Consulting
    5,607 Points
    • PHP
    • Using PHP with MySQL
    • Connecting PHP to MySQL
    • Getting Started with PDO

    7 Answers

  • Arnaud Schenk
    PLUS
    Arnaud Schenk
    Courses Plus Student 2,957 Points

    Xampp with apache server error : "access forbidden"

    Posted May 19, 2014 8:26am by Arnaud Schenk
    Arnaud Schenk
    Courses Plus Student 2,957 Points
    • PHP
    • Using PHP with MySQL
    • Connecting PHP to MySQL
    • Getting Started with PDO

    2 Answers

  • Samuel L. Moreira
    Samuel L. Moreira
    9,587 Points

    500 Internal Server Error

    Posted May 9, 2014 5:26pm by Samuel L. Moreira
    Samuel L. Moreira
    9,587 Points
    • PHP
    • Using PHP with MySQL
    • Connecting PHP to MySQL
    • Getting Started with PDO

    1 Answer

  • sebastian rojas
    sebastian rojas
    571 Points

    Can't connect to database - mysql

    Posted April 9, 2014 8:51pm by sebastian rojas
    sebastian rojas
    571 Points
    • PHP
    • Using PHP with MySQL
    • Connecting PHP to MySQL
    • Getting Started with PDO

    6 Answers

  • Jason Bunnell
    Jason Bunnell
    2,506 Points

    PHP and MySQL

    Posted March 25, 2014 4:01pm by Jason Bunnell
    Jason Bunnell
    2,506 Points
    • PHP
    • Using PHP with MySQL
    • Connecting PHP to MySQL
    • Getting Started with PDO

    3 Answers

  • KnowledgeWoods Consulting
    KnowledgeWoods Consulting
    5,607 Points

    Could not connect to Database.

    Posted February 24, 2014 3:41pm by KnowledgeWoods Consulting
    KnowledgeWoods Consulting
    5,607 Points
    • PHP
    • Using PHP with MySQL
    • Connecting PHP to MySQL
    • Getting Started with PDO

    4 Answers

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
SEE ALL

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
SEE ALL

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
SEE ALL

About Us

  • About
  • Blog
  • Community
  • Stories
  • Contact
  • Gift Card

Explore

  • Plans
  • Affiliates
  • Perks
  • Shop
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses

Treehouse is an online technology education platform founded in 2011. Treehouse offers more than 700 self-paced, video-based courses in web development, programming, data analysis, design, and AI, plus two project-based bootcamp programs in Front End Web Development and Full Stack JavaScript. Individual Treehouse plans start at $25 per month and include a 7-day free trial. Treehouse serves individual learners, businesses, schools, and public libraries. Cardholders at participating U.S. public libraries can use Treehouse for free. Select Treehouse courses, offered with University Pathways International, are recommended for college credit by ACE and NCCRS. Treehouse learners earn digital certificates for completed Tracks.

Terms & Conditions · Privacy · © 2026 Treehouse Island, Inc.
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
  • Discord