Skip to main content

πŸ›οΈ BLACK FRIDAY get-one-give-one sale is underway. Don't miss $50 off PLUS a free subscription to gift a friend. 🀩

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

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
  • <noob />
    <noob />
    17,063 Points

    There is a cleaner way to generate the html in PHP?

    Posted October 4, 2019 2:38pm by <noob />
    <noob />
    17,063 Points
    • PHP
    • Build a Basic PHP Website (2018)
    • Listing and Sorting Inventory Items
    • Displaying All Items

    2 Answers

  • Moritz Groß
    Moritz Groß
    3,313 Points

    I have tried to better format the string concaternation. Here it is for you if you want to take a look

    Posted August 15, 2019 9:59pm by Moritz Groß
    Moritz Groß
    3,313 Points
    • PHP
    • Build a Basic PHP Website (2018)
    • Listing and Sorting Inventory Items
    • Displaying All Items

    0 Answers

  • Peter Hope
    PLUS
    Peter Hope
    Courses Plus Student 5,849 Points

    workspace webpage not showing

    Posted October 3, 2018 3:50am by Peter Hope
    Peter Hope
    Courses Plus Student 5,849 Points
    • PHP
    • Build a Basic PHP Website (2018)
    • Listing and Sorting Inventory Items
    • Displaying All Items

    0 Answers

  • Gremyko Coleman
    Gremyko Coleman
    9,756 Points

    How is the <a href="#"> getting a source code from the php foreach loop in this video?

    Posted September 8, 2018 8:15am by Gremyko Coleman
    Gremyko Coleman
    9,756 Points
    • PHP
    • Build a Basic PHP Website (2018)
    • Listing and Sorting Inventory Items
    • Displaying All Items

    1 Answer

  • Katiuska Alicea de Leon
    Katiuska Alicea de Leon
    10,341 Points

    My images do not show

    Posted June 6, 2018 10:28am by Katiuska Alicea de Leon
    Katiuska Alicea de Leon
    10,341 Points
    • PHP
    • Build a Basic PHP Website (2018)
    • Listing and Sorting Inventory Items
    • Displaying All Items

    7 Answers

  • BATUR AKYIL
    BATUR AKYIL
    10,019 Points

    Can not open Data.txt

    Posted May 15, 2018 9:17am by BATUR AKYIL
    BATUR AKYIL
    10,019 Points
    • PHP
    • Build a Basic PHP Website (2018)
    • Listing and Sorting Inventory Items
    • Displaying All Items

    1 Answer

  • jlampstack
    jlampstack
    23,932 Points

    Why does teacher concatentate src and alt attributes?

    Posted May 9, 2018 2:20pm by jlampstack
    jlampstack
    23,932 Points
    • PHP
    • Build a Basic PHP Website (2018)
    • Listing and Sorting Inventory Items
    • Displaying All Items

    1 Answer

  • Iulian Mirzac
    Iulian Mirzac
    3,174 Points

    Illegal string offset 'img'

    Posted August 22, 2017 8:15pm by Iulian Mirzac
    Iulian Mirzac
    3,174 Points
    • PHP
    • Build a Basic PHP Website (2018)
    • Listing and Sorting Inventory Items
    • Displaying All Items

    2 Answers

  • kent membreve
    kent membreve
    11,535 Points

    So i didn't follow along coding can I get the code till this point? like maybe a link to github if someone uploaded.

    Posted August 5, 2017 9:30am by kent membreve
    kent membreve
    11,535 Points
    • PHP
    • Build a Basic PHP Website (2018)
    • Listing and Sorting Inventory Items
    • Displaying All Items

    1 Answer

  • David Choi
    David Choi
    8,536 Points

    What are the periods in image source for?

    Posted July 23, 2017 2:31pm by David Choi
    David Choi
    8,536 Points
    • PHP
    • Build a Basic PHP Website (2018)
    • Listing and Sorting Inventory Items
    • Displaying All Items

    2 Answers

  • Okafor Matthew
    PLUS
    Okafor Matthew
    Courses Plus Student 2,633 Points

    displaying all items

    Posted March 4, 2017 2:04am by Okafor Matthew
    Okafor Matthew
    Courses Plus Student 2,633 Points
    • PHP
    • Build a Basic PHP Website (2018)
    • Listing and Sorting Inventory Items
    • Displaying All Items

    0 Answers

  • Eric Griswold
    PLUS
    Eric Griswold
    Courses Plus Student 5,303 Points

    syntax error, unexpected '"stars"' (T_CONSTANT_ENCAPSED_STRING), expecting ']' in /home/treehouse/workspace/inc/data.php

    Posted February 10, 2017 6:17pm by Eric Griswold
    Eric Griswold
    Courses Plus Student 5,303 Points
    • PHP
    • Build a Basic PHP Website (2018)
    • Listing and Sorting Inventory Items
    • Displaying All Items

    0 Answers

  • Stanlon Milow
    Stanlon Milow
    22,386 Points

    Just wanted to give a super huge thanks for showing PHP Error Handling with the .htaccess file. Completely paid off

    Posted December 7, 2016 2:48am by Stanlon Milow
    Stanlon Milow
    22,386 Points
    • PHP
    • Build a Basic PHP Website (2018)
    • Listing and Sorting Inventory Items
    • Displaying All Items

    0 Answers

  • Arturo Espinoza
    Arturo Espinoza
    9,181 Points

    To many images in a catalog

    Posted October 16, 2016 3:28am by Arturo Espinoza
    Arturo Espinoza
    9,181 Points
    • PHP
    • Build a Basic PHP Website (2018)
    • Listing and Sorting Inventory Items
    • Displaying All Items

    1 Answer

  • Thomas Brushel
    Thomas Brushel
    11,713 Points

    All of the images are not showing up??

    Posted July 31, 2016 7:31pm by Thomas Brushel
    Thomas Brushel
    11,713 Points
    • PHP
    • Build a Basic PHP Website (2018)
    • Listing and Sorting Inventory Items
    • Displaying All Items

    2 Answers

  • Malcolm Stretten
    Malcolm Stretten
    3,814 Points

    This tutorial is a nightmare. Can ANYONE see what is wrong with my catalog.php

    Posted July 29, 2016 8:39am by Malcolm Stretten
    Malcolm Stretten
    3,814 Points
    • PHP
    • Build a Basic PHP Website (2018)
    • Listing and Sorting Inventory Items
    • Displaying All Items

    10 Answers

  • Flo Tubes
    Flo Tubes
    5,110 Points

    Displays too many items

    Posted April 30, 2016 7:50pm by Flo Tubes
    Flo Tubes
    5,110 Points
    • PHP
    • Build a Basic PHP Website (2018)
    • Listing and Sorting Inventory Items
    • Displaying All Items

    2 Answers

  • mohammed abdi abdulahi warsame
    mohammed abdi abdulahi warsame
    4,926 Points

    the veriabel $item is not defined how can they set it as src for the img

    Posted April 23, 2016 7:59pm by mohammed abdi abdulahi warsame
    mohammed abdi abdulahi warsame
    4,926 Points
    • PHP
    • Build a Basic PHP Website (2018)
    • Listing and Sorting Inventory Items
    • Displaying All Items

    2 Answers

  • Noor Ilani
    Noor Ilani
    7,170 Points

    getting only 2 columns grid

    Posted April 17, 2016 7:37pm by Noor Ilani
    Noor Ilani
    7,170 Points
    • PHP
    • Build a Basic PHP Website (2018)
    • Listing and Sorting Inventory Items
    • Displaying All Items

    1 Answer

  • Jonathan Grieve
    Jonathan Grieve
    91,254 Points

    Help! Where are the images?

    Posted March 24, 2016 5:42pm by Jonathan Grieve
    Jonathan Grieve
    91,254 Points
    • PHP
    • Build a Basic PHP Website (2018)
    • Listing and Sorting Inventory Items
    • Displaying All Items

    1 Answer

  • Lindsey Whitney
    Lindsey Whitney
    12,604 Points

    Illegal string offset

    Posted February 29, 2016 5:11pm by Lindsey Whitney
    Lindsey Whitney
    12,604 Points
    • PHP
    • Build a Basic PHP Website (2018)
    • Listing and Sorting Inventory Items
    • Displaying All Items

    2 Answers

  • James Barrett
    James Barrett
    13,253 Points

    How to apply a class individually to each item?

    Posted February 9, 2016 7:26pm by James Barrett
    James Barrett
    13,253 Points
    • PHP
    • Build a Basic PHP Website (2018)
    • Listing and Sorting Inventory Items
    • Displaying All Items

    4 Answers

  • suyash patankar
    suyash patankar
    2,401 Points

    Syntax error - books list not displayed

    Posted February 1, 2016 5:01pm by suyash patankar
    suyash patankar
    2,401 Points
    • PHP
    • Build a Basic PHP Website (2018)
    • Listing and Sorting Inventory Items
    • Displaying All Items

    4 Answers

  • Don Hamilton III
    Don Hamilton III
    31,828 Points

    list items don't display properly

    Posted January 16, 2016 9:37pm by Don Hamilton III
    Don Hamilton III
    31,828 Points
    • PHP
    • Build a Basic PHP Website (2018)
    • Listing and Sorting Inventory Items
    • Displaying All Items

    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