I'm trying to convert a database from MySQL to MongoDB but I have a problem. I do not know how the query should look for MongoDB.
$hd='';
$count = count($args[1]);
for($i=0;$i<$count-1;$i++){
$hd.="playerId='" . $args[1][$i] . "' OR ";
}
$hd.="playerId='".$args[1][$count-1]."'";
$h1=mysql_query(sprintf("SELECT * FROM player where ".$hd));
Anyone know how to fix it?