php - Use with mongodb $in only showing first id -
I am working on a project that works with the Mongodb and Spinks. I have a sphinx result in an array. The array looks like this array (2) {[0] => int (33) [1] => int (34)}
33, 34
When I try to get results from Mangode, only $ is used in the first id. I have been ousted on this on my head. I have seen many examples that show how to do it, but the results are not correct. Here is the Mangode query which only gives the first ID.
$ collection-> search (array ("_ id" => array ('$ in' = & gt; array (int) $ theseIds))); Now, if I change the $ archive-> Address (array ("_ id" = & gt; array ('$ in' = & gt; array ((int) 33), 34))));
I get the right results, not sure what is happening here Any help would be very commendable. Thanks! :)
Comments
Post a Comment