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 Integrating PHP with Databases Using Relational Tables Querying Multiple Tables with JOIN

Siraj Khan
Siraj Khan
3,451 Points

I couldn't get my head around anything the instructor saying over here.!

I couldn't get my head around anything the instructor saying over here.! Can anyone please help me with understanding the concept of this very tutorial.? I can't even get The structure explained here. Please help

2 Answers

Carl Evans
Carl Evans
11,679 Points

I agree. This felt very rushed.

It's explained how to get detail information about any item selected. The items have been listed from media table using full_catalog_array() function, but now there has to be created another function single_item_array($id). $id variable points the item to be selected. Inside that single_item_array function, queried database that joins three tables to get information needed about the item(or book) and save them in $results variable. $results fetched and saved as $catalog and returned as the function output. It's array and is shown with var_dump function in the browser to know what details about the item you have got.