2012-10-24 69 views
-1

我買了WHERE條件的SQL問題:Zend的像或條件

$select->where('(users.user_fname LIKE (?))','%'.$first.'%'); 

如何把它OR條件,因此看起來像:

$select->where('(users.user_fname LIKE (?))','%'.$first.'%'); 
OR 
$select->where('(users.user_fname LIKE (?))','%'.$last.'%'); 

回答