Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Siraj Khan3,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
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.