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

New No-Code Track! 🚀start learning today!

🌟 Dreaming of a bright future? 🎓 Ask about the Treehouse Scholarship program! 🚀

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

  • Treehouse Logo
  • Plans
    Chevron
    • For Individuals
    • For Businesses
    • For Schools
    • For Libraries
    • For Military
  • Library
    Chevron
    • All Courses
    • Tracks
    • College Credit
  • Techdegree
    Chevron
    • Overview
    • Front End Development
    • Full Stack JavaScript
    • Data Analysis
    • UX Design
    • Python
  • Community
    Chevron
    • Code Adventures
    • Discord
    • Forum
    • Success Stories
    • Treehouse Links
    • 100 Days of Code
  • Resources
    Chevron
    • Career Toolbox
    • CodeForward
    • Free Treehouse Near Me
    • Jobs
    • Blog
    • Support
    • About
  • For Individuals For Businesses For Schools For Libraries For Military
  • All Courses Tracks College Credit
  • Overview Front End Web Development Full Stack JavaScript Python Development Data Analysis UX Design
  • Code Adventures Discord Forum Success Stories Treehouse Links 100 Days of Code
  • Career Toolbox CodeForward Free Treehouse Near Me Jobs Blog Support About
  • Sign In
  • Free Trial
Instagram Twitter Facebook YouTube LinkedIn
    • Newest
      • Newest
      • Active
      • Unanswered
      • Featured
    • All Topics
      • All Topics
      • • General Discussion
      • • AI
      • • Android
      • • 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
  • James Barrett
    James Barrett
    13,253 Points

    What exactly is setAttribute() doing in this code?

    Posted April 1, 2016 12:33pm by James Barrett
    James Barrett
    13,253 Points
    • PHP
    • Using PHP with MySQL
    • Querying the Database with PHP
    • Querying the Database

    1 Answer

  • Fabian Kaegy
    Fabian Kaegy
    17,155 Points

    Undefinded class constante

    Posted October 11, 2015 8:54pm by Fabian Kaegy
    Fabian Kaegy
    17,155 Points
    • PHP
    • Using PHP with MySQL
    • Querying the Database with PHP
    • Querying the Database

    1 Answer

  • Nathaniel Evanich
    Nathaniel Evanich
    3,742 Points

    Why is my query failing?

    Posted August 25, 2015 12:44am by Nathaniel Evanich
    Nathaniel Evanich
    3,742 Points
    • PHP
    • Using PHP with MySQL
    • Querying the Database with PHP
    • Querying the Database

    2 Answers

  • Angelos Bolovinos
    Angelos Bolovinos
    3,958 Points

    Object not found!

    Posted July 30, 2015 5:21am by Angelos Bolovinos
    Angelos Bolovinos
    3,958 Points
    • Development Tools
    • Using PHP with MySQL
    • Querying the Database with PHP
    • Querying the Database

    1 Answer

  • William J. Terrell
    William J. Terrell
    17,403 Points

    Cannot connect to the Database

    Posted July 8, 2015 9:10pm by William J. Terrell
    William J. Terrell
    17,403 Points
    • Development Tools
    • Using PHP with MySQL
    • Querying the Database with PHP
    • Querying the Database

    1 Answer

  • Elijah Collins
    Elijah Collins
    19,457 Points

    Querying the Database

    Posted February 27, 2015 11:44pm by Elijah Collins
    Elijah Collins
    19,457 Points
    • PHP
    • Using PHP with MySQL
    • Querying the Database with PHP
    • Querying the Database

    2 Answers

  • Neeta Ghosh
    Neeta Ghosh
    839 Points

    I am getting "Error:Table database.tablename does not exist". I'm connected to the db and 'show tables' works.

    Posted December 25, 2014 5:44pm by Neeta Ghosh
    Neeta Ghosh
    839 Points
    • Development Tools
    • Using PHP with MySQL
    • Querying the Database with PHP
    • Querying the Database

    0 Answers

  • Charlotte Winter
    Charlotte Winter
    7,374 Points

    PDO class: Seems it's a bad idea to have the username/password as part of the connection string. How is this dealt with?

    Posted September 15, 2014 5:40pm by Charlotte Winter
    Charlotte Winter
    7,374 Points
    • PHP
    • Using PHP with MySQL
    • Querying the Database with PHP
    • Querying the Database

    6 Answers

  • Daniel Boyd
    Daniel Boyd
    3,662 Points

    If you had to use a MS SQL database instead of My Sql, what would the connection line be?

    Posted September 8, 2014 9:22pm by Daniel Boyd
    Daniel Boyd
    3,662 Points
    • PHP
    • Using PHP with MySQL
    • Querying the Database with PHP
    • Querying the Database

    1 Answer

  • Adam Zuckerberg
    Adam Zuckerberg
    22,248 Points

    Where do you put the PHP if a jQuery event calls the connection to MySQL on a click() event?

    Posted May 28, 2014 12:31am by Adam Zuckerberg
    Adam Zuckerberg
    22,248 Points
    • PHP
    • Using PHP with MySQL
    • Querying the Database with PHP
    • Querying the Database

    1 Answer

  • Chad Buie
    PLUS
    Chad Buie
    Courses Plus Student 1,820 Points

    NoSQL In The Future?

    Posted April 23, 2014 7:56pm by Chad Buie
    Chad Buie
    Courses Plus Student 1,820 Points
    • PHP
    • Using PHP with MySQL
    • Querying the Database with PHP
    • Querying the Database

    0 Answers

  • Anthony Randazzo
    Anthony Randazzo
    13,072 Points

    "Could not connect to database"

    Posted April 18, 2014 12:11am by Anthony Randazzo
    Anthony Randazzo
    13,072 Points
    • PHP
    • Using PHP with MySQL
    • Querying the Database with PHP
    • Querying the Database

    3 Answers

  • Josh Wardini
    PLUS
    Josh Wardini
    Courses Plus Student 1,528 Points

    setAttribute breaks code

    Posted March 18, 2014 6:38am by Josh Wardini
    Josh Wardini
    Courses Plus Student 1,528 Points
    • PHP
    • Using PHP with MySQL
    • Querying the Database with PHP
    • Querying the Database

    1 Answer

  • Faheem Rasool
    Faheem Rasool
    1,034 Points

    PDO class instance throwing error as class not found

    Posted March 8, 2014 1:26pm by Faheem Rasool
    Faheem Rasool
    1,034 Points
    • PHP
    • Using PHP with MySQL
    • Querying the Database with PHP
    • Querying the Database

    0 Answers

  • KnowledgeWoods Consulting
    KnowledgeWoods Consulting
    5,607 Points

    Insert Details from Contact Form into Mysql Database

    Posted March 7, 2014 3:17pm by KnowledgeWoods Consulting
    KnowledgeWoods Consulting
    5,607 Points
    • PHP
    • Using PHP with MySQL
    • Querying the Database with PHP
    • Querying the Database

    1 Answer

  • Mike Baxter
    Mike Baxter
    4,442 Points

    MySQL Exception: From MAMP, MySQL database, or video's code?

    Posted February 26, 2014 9:07am by Mike Baxter
    Mike Baxter
    4,442 Points
    • PHP
    • Using PHP with MySQL
    • Querying the Database with PHP
    • Querying the Database

    1 Answer

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

    Treehouse

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

See Full Catalogue

Techdegree

  • Front End Web Development
  • Full Stack JavaScript
  • Python Development
  • Data Analysis
  • UX Design

Tracks

  • Learn to Code for Beginners
  • Beginning Python
  • Beginning SQL
  • Beginning Java
  • ...see more

Courses

  • JavaScript Basics
  • Intro to HTML & CSS
  • Python Basics
  • CSS Layout
  • ...see more

Explore

  • Plans
  • Affiliates
  • Perks
  • Free Treehouse Near Me
  • Treehouse for Libraries
  • Treehouse for Businesses
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
  • Instagram
Terms & Conditions | Privacy

© 2025 Treehouse Island, Inc.