|
Getting a DatabaseTo select a database, use:
<?php The database does not need to be created in advance, you can create new databases by selecting them. Be careful of typos! You can inadvertently create a new database, which can cause confusing errors (here name is misspelled as anme in the second selection:
<?php See AlsoThe API documentation on the MongoDB class contains more information about database objects. |