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
  • 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.

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