Re: [PHP] Zend DB Table - WHERE as OR?

2010-04-09 Thread Andrew Ballard
On Fri, Apr 9, 2010 at 3:15 PM, Dan Joseph wrote: > Hi Everyone, > > I'm trying to figure out if something is even an option with the Zend > Framework.  We use the DB Table stuff.  I don't see it in the manual, so I > figured I'd ask you all... > > I have: > > $select = $table->select()->where( "h

Re: [PHP] Zend DB Table - WHERE as OR?

2010-04-09 Thread Dan Joseph
On Fri, Apr 9, 2010 at 3:25 PM, Andrew Ballard wrote: > Try this: > > $select = $table->select()->where( "home_team_id = ?", $home_team_id ) > ->orWhere( "away_team_id = ?", > $away_team_id ); > > Perfect...thank you! -- -Dan Joseph www.canishosting.com - Unlim

[PHP] Zend DB Table - WHERE as OR?

2010-04-09 Thread Dan Joseph
Hi Everyone, I'm trying to figure out if something is even an option with the Zend Framework. We use the DB Table stuff. I don't see it in the manual, so I figured I'd ask you all... I have: $select = $table->select()->where( "home_team_id = ?", $home_team_id )