MongoDB
 sql >> Datenbank >  >> NoSQL >> MongoDB

mongodb num_rows entspricht php

So denke ich:

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