MongoDB::__construct Creates a new database &reftitle.description; MongoDB::__construct Mongoconn stringname This method is not meant to be called directly. The preferred way to create an instance of MongoDB is through Mongo::__get or Mongo::selectDB. If you're ignoring the previous paragraph and want to call it directly you can do so: ]]> But don't. Isn't this much nicer: mydbname; // or, if the name contains weird characters: $db = $m->selectDB('my,db:name'); ?> ]]> &reftitle.parameters; Mongo conn Database connection. name Database name. &reftitle.returnvalues; Returns the database. &reftitle.errors; Throws default exception if the database name is invalid.