The script below only allows me to search if the input fields match EXACTLY. However, I need the script to basically work like this:
It needs to be able to take all the fields I populate and give me the "BEST MATCH" as the top result. So say I select Blue Eyes, Brown Hair, Asian, and US as country. I need it to show me the exact matches IF ANY on top, then as you go down the line, it shows people who semi-match my query, some that are only blue eyes, brown hair, and us, and as the results go lower and lower, the fields get narrower, and narrower.
I don't know the term for this, but the code for my script's search library is below. I don't expect the script mod I need to be solved here, but I just need the term I'm referring to, and a point in the right direction. I'm getting bids to do this for 20-60 bucks on freelance sites, so that makes me assume this is an easy fix, but have no clue on how to approach it. I'm still new to PHP, about 3 months now.
I've attached the script
lib.search.php.zip