Alvin Hue4,496 Points
catalog.php view details
When I am on the catalog.php page, when I clicked the individual items it didn't direct me to details.php page, I think it will be more practical to make this works, the problem is I don't know how to do it, anyone can help? Thanks!
Simon Coates28,661 Points
did you see the teacher's note on https://teamtreehouse.com/library/build-a-basic-php-website/listing-and-sorting-inventory-items/displaying-item-details ?
The full output for
get_item_html() should look like this:
$output = "<li><a href='" . 'details.php?id=' . $id . "'><img src='" . $item['img'] . "' alt='" . $item['title'] . "' />" . "<p>View Details</p>" . "</a></li>";
That's working for me!