Re: Zend DB Table - WHERE as OR?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Apr 9, 2010 at 3:25 PM, Andrew Ballard <aballard@xxxxxxxxx> 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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux