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 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
Courses Plus Student 11,504 Points

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