note 103062 rejected from mongo.queries by danbrown

From: Date: Wed, 23 Mar 2011 15:14:48 +0000
Subject: note 103062 rejected from mongo.queries by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-178129@lists.php.net to get a copy of this message
Note Submitter: attakmule at gmail dot com ---- Ok...I'm going nuts on this one and for some reason I can't find the answer in google. Trying to build an "and" find query with the following array(no, it doesn't work) $query=array('$and'=>array(array('1'=>'Neural_Nets'), array('2'=>'Software'))); First, I can find no reference to an $and operator...just $or, so thats possibly an issue. Second I have tried this a just an array of arrays that contain the conditions without the '$and' and that doesn't do anything. I have tried something similar using mongo command line but I'm really getting nowhere. Any help would be greatly appreciated.

« previous php.notes (#178129) next »