Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta charset="utf-8" />
- </head>
- <body>
- <pre>
- <?php
- $mongo = new MongoClient();
- $db = $mongo->unicorns;
- $col = $db->unicorns;
- $cur = $col->find(array(
- 'weight' => array (
- '$lt' => '400'
- )
- ));
- foreach ($cur as $element) {
- echo $element['name'];
- }
- print_r($cur);
- ?>
- </pre>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement