I need to get data from Mongodb Database, My code as follow,
$collection = $global["dbmongo"] -> person_uuid;
$rows = $collection->find(array("p_uuid" => $global['uuid'],
'$or'=>array(
'expiry_date'=>null,
'expiry_date'=> '0000-01-01 00:00:00'
)
)
);
But it shows,
$or requires nonempty array
if i write echo "count".$count;
var_dump($rows);
Then the output is countArrayobject(MongoCursor)#48 (0) { }
, addition to above output
Please help me.