I am passing an array from a HTML form into a PHP script. I am then imploading it.
if ($propType)
{
$prop = implode($propType, ",");
}
NEXT:
I am thing trying to run $prop through the query which has several vars that it is searching on.
AND (propType LIKE '%$prop%' OR '$propType' = ' ')
I would like for the db just to match part of the string and not all of it. Right now it is needing an exact match of the string passed. What am I doing wrong?
In a nutshell, I think I need to replace LIKE in the query with something not so sensitive, more of a OR, and not so much a AND. Hopefully that makes since. Let me know if you have any questions. Thanks for help!