Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 415954 Details for
Bug 560022
=dev-php/pecl-mongo-1.6.9 stable request
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
mongo.php
mongo.php (text/plain), 627 bytes, created by
Michael Orlitzky
on 2015-11-02 16:27:42 UTC
(
hide
)
Description:
mongo.php
Filename:
MIME Type:
Creator:
Michael Orlitzky
Created:
2015-11-02 16:27:42 UTC
Size:
627 bytes
patch
obsolete
><?php > >// connect >$m = new MongoClient(); > >// select a database >$db = $m->comedy; > >// select a collection (analogous to a relational database's table) >$collection = $db->cartoons; > >// add a record >$document = array( "title" => "Calvin and Hobbes", "author" => "Bill Watterson" ); >$collection->insert($document); > >// add another record, with a different "shape" >$document = array( "title" => "XKCD", "online" => true ); >$collection->insert($document); > >// find everything in the collection >$cursor = $collection->find(); > >// iterate through the results >foreach ($cursor as $document) { > echo $document["title"] . "\n"; >} > >?>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 560022
: 415954