VonoNogeJob
New Member
I'm running this code:\[code\] $db = new Mongo("mongodb://user[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:
I'm also running php 5.2.6What's the problem? Thanks.