Welcome Guest, Not a member yet? Register   Sign In
Codeigniter + MongoDB
#4

[eluser]gh0st[/eluser]
I'm trying to get the get_where command to work, but it never returns anything despite there being records to the contary;

Code:
$results = $this->mongo_db->get_where('company', array('cash' => 50000));

This should return at least 3 companies where their cash is 50000 but it always returns an empty array.

If I do:

Code:
$results = $this->mongo_db->get('company');

This will return all companies. So Mongo is installed and working.

What am I doing wrong?


Messages In This Thread
Codeigniter + MongoDB - by El Forum - 07-28-2010, 09:38 AM
Codeigniter + MongoDB - by El Forum - 11-24-2010, 03:23 AM
Codeigniter + MongoDB - by El Forum - 11-25-2010, 12:31 PM
Codeigniter + MongoDB - by El Forum - 04-25-2011, 10:50 AM
Codeigniter + MongoDB - by El Forum - 02-05-2012, 07:21 AM
Codeigniter + MongoDB - by El Forum - 03-21-2012, 07:50 AM
Codeigniter + MongoDB - by El Forum - 05-16-2012, 09:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB