Syntax Help (more than one criteria in $options['where'] line)

3 posts by 2 authors in: Forums > CMS Builder
Last Post: April 24, 2008   (RSS)

Re: [rasbro] Syntax Help (more than one criteria in $options['where'] line)

By Dave - April 24, 2008

So you want a where that matches any of the 3? Is that right? Try this:

$options['where'] = 'default_topic = "Grilling Tips" OR other_topic1 = "Grilling Tips" OR other_topic2 = "Grilling Tips"';

Let me know if that works for you.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Syntax Help (more than one criteria in $options['where'] line)

By rasbro - April 24, 2008

Yep, that's what I need Dave. I tried it and it seems to work. Thanks!

Brian