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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Martina Carrington](https://uploads.teamtreehouse.com/production/profile-photos/2254242/micro_10409403_10152389847599536_5710209904112388113_n.jpg)
Martina Carrington
15,754 Pointsi think it an error on my breadcrumbs.php coding
i follow steps on the video make the breadcrumbs coding but i don't see anything <?php include("inc/data.php"); include("inc/functions.php");
$pageTitle = "Full Catalog"; $section = null;
if(isset($_GET["id"])) { $id = $_GET["id"]; if (isset($catalog[$id])){ $item = catalog[$id];
}
} if(!isset($item)){ header("localtion:catalog.php"); exit; }
pageTitle = $item["title"]; $section = null;
include("inc/header.php"); ?>
<div class="section page">
<div class="wrapper">
<div class="breadcrumbs">
<a href="catalog.php">Full Catalog</a>
> <a href="catalog.php?cat=<?php echo $item["catalog"]; ?> ">
<?php echo $item["category"]; ?></a>
> <?php echo $item["title"]; ?>
</div>
<div class="media-picture">
<span><img src="" <?php echo $item["img"]; ?>" alt="<?php echo $item["title"]; ?>"/>
</span>
</div> </div class="media-details">
<h1><?php echo $item["title"]; ?></h1>
<table>
<tr>
<th>Category</th>
<td><?php echo $item["category"]; ?></td>
</tr>
<tr>
<th>Genre</th>
<td><?php echo $item["genre"]; ?></td>
</tr>
<tr>
<th>Format</th>
<td><?php echo $item["format"]; ?></td>
</tr>
<tr>
<th>Year </th>
<td><?php echo $item["year"]; ?></td>
</tr>
<?php
if (strolower($item["category"]) == "books") {
?>
<tr>
<th>Author</th>
<td><?php echo $item["author"]; ?></td>
</tr>
<tr>
<th>Publisher</th>
<td><?php echo $item["publisher"]; ?></td>
</tr>
<tr>
<th>Isbn</th>
<td><?php echo $item["isbn"]; ?></td>
</tr>
<tr>
<?php }?>
</table>
2 Answers
![Rebecca Mooneyham](https://secure.gravatar.com/avatar/f82a86d93f1ae42c80b26d6068fd47a2?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Rebecca Mooneyham
Data Analysis Techdegree Student 17,553 PointsYou have the word catalog in this line and it should be category.
> <a href="catalog.php?cat=<?php echo $item["catalog"]; ?> ">
> <a href="catalog.php?cat=<?php echo $item["category"]; ?> ">
![Martina Carrington](https://uploads.teamtreehouse.com/production/profile-photos/2254242/micro_10409403_10152389847599536_5710209904112388113_n.jpg)
Martina Carrington
15,754 PointsThanks Rebecca Mooneyham
![Rebecca Mooneyham](https://secure.gravatar.com/avatar/f82a86d93f1ae42c80b26d6068fd47a2?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Rebecca Mooneyham
Data Analysis Techdegree Student 17,553 PointsYou're welcome, Martina!
Martina Carrington
15,754 PointsMartina Carrington
15,754 PointsDetails.php <?php include("inc/data.php"); include("inc/functions.php");
$pageTitle = "Full Catalog"; $section = null;
if(isset($_GET["id"])) { $id = $_GET["id"]; if (isset($catalog[$id])){ $item = catalog[$id];
}
} if(!isset($item)){ header("localtion:catalog.php"); exit; }
pageTitle = $item["title"]; $section = null;
include("inc/header.php"); ?>
<div class="section page">
<div class="wrapper">
</span>
</div> </div class="media-details">
<h1><?php echo $item["title"]; ?></h1> <table> <tr> <th>Category</th> <td><?php echo $item["category"]; ?></td> </tr> <tr> <th>Genre</th> <td><?php echo $item["genre"]; ?></td> </tr> <tr> <th>Format</th> <td><?php echo $item["format"]; ?></td> </tr> <tr> <th>Year </th> <td><?php echo $item["year"]; ?></td> </tr> <?php if (strolower($item["category"]) == "books") { ?> <tr> <th>Author</th> <td><?php echo $item["author"]; ?></td> </tr>
<tr> <th>Publisher</th> <td><?php echo $item["publisher"]; ?></td> </tr> <tr> <th>Isbn</th> <td><?php echo $item["isbn"]; ?></td> </tr> <tr>
<?php }?>
</table>