Re: Zend DB Table - WHERE as OR?

From: Date: Fri, 09 Apr 2010 19:27:02 +0000
Subject: Re: Zend DB Table - WHERE as OR?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-303952@lists.php.net to get a copy of this message
On Fri, Apr 9, 2010 at 3:25 PM, Andrew Ballard <aballard@gmail.com> wrote: > Try this: > > <?php > $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 - Unlimited Hosting Plans start @ $3.95/month. Promo Code "NEWTHINGS" for 10% off initial order http://www.facebook.com/canishosting http://www.facebook.com/originalpoetry

« previous php.general (#303952) next »