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

Min Chin
Min Chin
401 Points

Im getting 2 headers on the page.

im getting 2 headers on the page. What am i doing wrong?

2 Answers

Rogier Nitschelm
seal-mask
.a{fill-rule:evenodd;}techdegree
Rogier Nitschelm
iOS Development Techdegree Student 5,461 Points

Hello there, that sounds like something silly is going on! Could you please share us the code related to the header? There could be alot of reasons you are seeing multiple headers. Like two header-elements, or a function/loop that renders too many headers.

If you could share the code, maybe someone can help!

Min Chin
Min Chin
401 Points

<?php include("inc/header.php"); ?> <html> <head> <title><?php echo "Personal Media Library"; ?> </title> <link rel="stylesheet" href="css/style.css" type="text/css"> </head> <body>

Above code is from my index.php file. Is the php include code needed in the index.php file? Sorry im having hard time formatting my code included in this post.