$SQL = "SELECT * from $table WHERE RATING >= '$minrating' AND RATING <= '$maxrating' $theorder $bigwhere AND QUED = 'Posted' AND Recipes = '$rowxxx[Recipes]' || Desserts = '$rowxxx[Desserts]' || Baking = '$rowxxx[Baking]' || Barbecue = '$rowxxx[Barbecue]'";
so my question is...
the first criteria, AND RATING, AND RATING, AND QUED are all requirements... they should all match
but the second set of criteria, AND Recipes || Desserts || Baking || Barbecue... these are suppose to be OK to match any of, they don't have to match all.
so is my MYSQL query correct?
will it require the AND RATING, AND RATING, AND QUED, and then || (OR) Recipes || Desserts || Baking...
this doesn't sound right to me...
how would i query something like this,
where certain fields are requred to match, and later fields are checked IF they match, but don't have to match,
the idea is to pull up recipes from a certain category, depending on if that category is selected... but still require that the recipe meets a certain rating critera (etc)
thanks!