I'm running this code:
$db = new Mongo("mongodb://user:[email protected]:27081/dbname");
$collection = $db->foobar;
$collection->insert($content);
I'm trying to test mongohq by just creating a random collection.
I'm getting this error:
Fatal error: Call to undefined method MongoDB::insert() in /ajax/db.php on line 24
I have the client installed as far as I know:
I'm also running php 5.2.6
What's the problem? Thanks.