I want to do a request which is in mysql like SELECT * FROM '.$category.' <– the from table is random and its given over the POST. How do I do this in MongoDB?
I started like:
$db->$category->
$category = $_POST['category'];
$category = $liste[$category];
Can anyone please help me?
btw. :
Performance Problem:
Is it faster of any reason to do more then one collection in mongodb?
For example i put 10 collections with each 1 million in it or 1 with 10 million?
Kind Regards
$db->selectCollection( $category )->find();That will give you all of the results from a certain collection as a MongoCursor object. Not sure what else you are looking for.