I have followed structure of mongoDB:
- DB name:
bios - user: "fess"
- password: "boo"
- IP: 1.2.3.4
- collection name: bios2
From MongoVUE:

This is my snippets of PHP code:
$db = new Mongo('mongodb://fess:[email protected]/bios');
// if i remove "bios" it asks default db name
$collection_bios2 = $db->bios2;
$cursor_bios2 = $collection_bios2->find(); // <- here I get error
// PHP Fatal error: Call to undefined method MongoDB::find()
...
$db->close();
Why I get this error?
I saw other examples and seems that $collection_bios2 should be collection.
Thanks