note 103062 added to mongo.queries

From: Date: Wed, 23 Mar 2011 13:23:01 +0000
Subject: note 103062 added to mongo.queries
Groups: php.notes 
Request: Send a blank email to php-notes+get-178118@lists.php.net to get a copy of this message
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. ---- Server IP: 69.147.83.197 Probable Submitter: 68.199.228.177 ---- Manual Page -- http://www.php.net/manual/en/mongo.queries.php Edit -- https://master.php.net/note/edit/103062 Del: integrated -- https://master.php.net/note/delete/103062/integrated Del: useless -- https://master.php.net/note/delete/103062/useless Del: bad code -- https://master.php.net/note/delete/103062/bad+code Del: spam -- https://master.php.net/note/delete/103062/spam Del: non-english -- https://master.php.net/note/delete/103062/non-english Del: in docs -- https://master.php.net/note/delete/103062/in+docs Del: other reasons-- https://master.php.net/note/delete/103062 Reject -- https://master.php.net/note/reject/103062 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#178118) next »