Jump to content

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-----------';

?>

Link to comment
https://forums.phpfreaks.com/topic/230604-mongodb-find/
Share on other sites

Archived

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

×
×
  • 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.