[_id] => MongoId Object (
[$id] => 5090ace3788a466769b3804e
)
[startdate] => MongoDate Object (
[sec] => 1301616000
[usec] => 0
)
[enddate] => MongoDate Object (
[sec] => 1304121600
[usec] => 0
)
[your_id] => 33902
[odd_blah] => blahblah
[cam_id] => 339
[cost] => 0.01
[iscurrent] =>
[damn_current] => Array (
)
$coll = $this->mongo_db->where('cam_id', 339)->get('collection_name);
This returns nothing. As you might notice I am using
https://github.com/alexbilbie/codeigniter-mongodb-library/tree/v2
I get an empty array. Can anyone help? This sounds primitive, but kind of stuck here.
You’re very close, you need to put your
wherestatement in an array.I’m assuming you’re using Alex Bilbie’s MongoDB CodeIgniter Library. His documentation is really out of date and it is more recommended to look at the comments of his source code for examples and the types of inputs that the functions require.