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.

PHP Integrating PHP with Databases Filtering Input for Queries Creating the Search Function

Zachary Baker
PLUS
Zachary Baker
Courses Plus Student 11,504 Points

Filtering issues

My search function is in place, but nothing is filtering when I try to use a search term. Everything else is working, but I am not getting the search results that I am looking for.

Here is a link to my workspace for the code: https://w.trhou.se/ltcgt7mfl0

2 Answers

Hazem mosaad
Hazem mosaad
15,384 Points

Hello My Friend YOU HAVE SMALL MISTAKE HERE

// file catalog.php
$total_items = get_catalog_count($section. $search); // on line 36

the right 
$total_items = get_catalog_count($section , $search); putting comma 
Zachary Baker
PLUS
Zachary Baker
Pro Student 11,504 Points

Thank you Hazeem! Thank you again for helping me out! I am truly grateful!