Hello
I need some help in making an OR clause in $criteria array. I'd like
to have two conditions on one field. It should look like:
... WHERE((AuctionShippers.shipper_id='5' OR
AuctionShippers.shipper_id='-1') AND(..[some other conditions]..))
$criteria['Auction.created'] = $this->data['Auction']['created'];
$criteria['Shipping.name'] = 'LIKE %'.$this->data['Shipping']
['name'].'%';
$criteria +=
array('AuctionsShipper.shipper_id'=>'-1','AuctionsShipper.shipper_id'=>
$shipper[0]['Shipper']['id']);
this code doesn't work :(
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---