php mongodb : Call to undefined method MongoDB::insert() in db.php

VonoNogeJob

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