I have one problem for Where clause in PHP - MongoDB.
i search in this forum and obtain some information.
My code is :
$condizioneMongoDB = "array('chrom'=>'chr7' )";
$whereClause = eval("\$str = \"$condizioneMongoDB\";");
$retval = $collection->distinct("p_id", $whereClause);
The Where clause is completely ignored.
This static code work:
$retval = $collection->distinct("p_id", array('chrom'=>'chr7' ));