Hi. Help Please.
—
I just can’t seem to get my head around this:
one array of jobs needs to be filtered down to the desired info
[code=php]
//default: no filter
$alljobs;//filter one: job types
//if filter one is the ONLY active filter, code to get the jobs by field TYPE (done)
$alljobs=$jobtypes;
//filter two: job cities
//if filter two is active is the ONLY active filter, code to get the jobs by field CITIES (done)
$alljobs=$jobcities;
//now if BOTH filters are active (job cities AND job types)
//stuck here!!!
$alljobs=?????????
//there are 4 filters…giving me a total of 15 iterations of filters that can be ON at any time
[/code]
I’ve used if, elseif, etc…it works…but
I get repeated results when I do
(here is my problem)
array_merge($jobtypes,$jobcities, …);
I guess merging them is not the answer…
please help!
thank you for your help in advance.