Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

PHP Build a Basic PHP Website (2018) Listing and Sorting Inventory Items Adding Elements and Specifying a Key

coskun olcucu
coskun olcucu
5,340 Points

I have a problem with the catalog pages

Hi, I am using my own local MAMP server to practice the videos .I can display all pages properly at first place,however,after for a while when i try to display either books ,movies or music pages,i got and error messages saying that " The localhost page isn't working". What am I doing wrong?

2 Answers

Sergey Podgornyy
Sergey Podgornyy
20,660 Points

Can you provide your code here?

By the way, I suggest you to use built-in PHP server for local server. You can read more here - http://php.net/manual/en/features.commandline.webserver.php

Check the links in your header.php file. There's a chance that the links aren't pointing to their proper pages. Are your settings set to display error messages? If no then you might have a bug in your code that you need to correct.