Jump to content

multiple 'and' and one 'or' help


gibbonuk

Recommended Posts

Hi i have a query that changes depending on the users selection for "narrowing" down the results.

 

So i achived this by for each selected wanted i added a "and" opertator to the query. but for one field i want it to be And & or.

 

But what i found is happening is its checking the or with all the ands, not just the field i want it to do.

 

How can have multiple ands but for just one of them i want it to have a or.

 

This all sounded very confusing to write, hope you understand.

 

Thanks

Andy

Link to comment
https://forums.phpfreaks.com/topic/251607-multiple-and-and-one-or-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.