FAQ
As far as I know its not Mongo its MongoClient

  <?php

$m = new MongoClient(); // connect
$db = $m->foo; // get the database named "foo"

?>

Have you installed the pear extension nodule mongo for PHP ?

Insert:
$m = new MongoClient();
$collection = $m->selectCollection('test', 'phpmanual');

// If an array literal is used, there is no way to access the generated _id
$collection->insert(array('x' => 1));


--
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongodb-user@googlegroups.com
To unsubscribe from this group, send email to
mongodb-user+unsubscribe@googlegroups.com
See also the IRC channel -- freenode.net#mongodb

---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 3 of 3 | next ›
Discussion Overview
groupmongodb-user @
categoriesmongodb
postedAug 17, '13 at 1:16p
activeAug 18, '13 at 1:51p
posts3
users3
websitemongodb.org
irc#mongodb

People

Translate

site design / logo © 2022 Grokbase