note 115677 added to mongodb.selectcollection
| From: | asuquo dot ulo at techxion dot com | Date: | Sat, 06 Sep 2014 06:33:17 +0000 |
| Subject: | note 115677 added to mongodb.selectcollection | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-200382@lists.php.net to get a copy of this message | ||
A simple script that selects a db and collection.
$m = new MongoClient();
echo "Connection to database successfully<br>";
// select a database
$db = $m->test;
echo "Database test selected<br>";
//select a Collection
$collection = $db->selectCollection("member");
echo "Collection member selected succsessfully<br>";
?>
----
Server IP: 72.52.91.14
Probable Submitter: 41.75.81.78
----
Manual Page -- http://php.net/manual/en/mongodb.selectcollection.php
Edit -- https://master.php.net/note/edit/115677
Del: integrated -- https://master.php.net/note/delete/115677/integrated
Del: useless -- https://master.php.net/note/delete/115677/useless
Del: bad code -- https://master.php.net/note/delete/115677/bad+code
Del: spam -- https://master.php.net/note/delete/115677/spam
Del: non-english -- https://master.php.net/note/delete/115677/non-english
Del: in docs -- https://master.php.net/note/delete/115677/in+docs
Del: other reasons-- https://master.php.net/note/delete/115677
Reject -- https://master.php.net/note/reject/115677
Search -- https://master.php.net/manage/user-notes.php