MongoDB
 sql >> Database >  >> NoSQL >> MongoDB

mongodb num_rows equivalente a php

Così, penso:

$collection = $connection->myDB->myCollection;
$cursor = $collection->find(array("email" => $newemail, "password" => $newpass));
$nResults = $cursor->count();