1
Hi there
I'm trying to adjust the search feature for a module (classifieds).
I want it to search by one additional field (called 'level').
I've added the field to the search form
Then I did GET/POST in the module/search.php page (I know this works because if I do an echo "$level" statement in search.php it displays).
But in search.inc.php I can't make the search work with this new field.
$sql .= "AND (l.type LIKE '$level')
If i enter the value directly it works
$sql .= "AND (l.type LIKE 'PGT')
But if i change it back to '$level' it doesn't work. So I guess search.inc.php can't read the value of $level
I've tried adding it to the search function in search.inc.php, like this:
function classifieds_search($queryarray, $andor, $limit, $offset, $userid, $level)
But that doesn't do it
I'm stumped, can anyone tell me how to make it work
thanks a lot for any help!!