Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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.