Jump to content

Archived

This topic is now archived and is closed to further replies.

jhanquar

MongoDB find

Recommended Posts

Hello i'm a mongodb user and i'm testing a script. I'm sure that in the collection features there are json documents. But when I use the find function it gives me a null can someone help me please

 

<?php

$m= new Mongo();

echo '1++++++++++++';

var_dump($m);

$mongodb = $m->arraycghbase_mongo;

echo '2------------';

var_dump($mongodb);

$features = $mongodb->features;

var_dump($features);

echo '3++++++++++';

$results = $features->find();

var_dump($results);

echo '4-----------';

?>

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.