PHP program with code: {code ...} after execution, return: {code ...} I checked that no data exists in mongo, but this error does not have any useful information. I would like to ask (GG does not) the PHP program with the code:
$mongo = new MongoClient();$db = $mongo->btss;$hashs = $mongo->db->hash;$hash = $hashs->insert(array('hash' => $msg));var_dump($hash);
Return after execution:
array(4) { ["ok"]=> float(1) ["n"]=> int(0) ["err"]=> NULL ["errmsg"]=> NULL }
I checked for no data in mongo, but this error does not have any useful information. I would like to ask for advice (GG does not)
Reply content:
PHP program with code:
$mongo = new MongoClient();$db = $mongo->btss;$hashs = $mongo->db->hash;$hash = $hashs->insert(array('hash' => $msg));var_dump($hash);
Return after execution:
array(4) { ["ok"]=> float(1) ["n"]=> int(0) ["err"]=> NULL ["errmsg"]=> NULL }
I checked for no data in mongo, but this error does not have any useful information. I would like to ask for advice (GG does not)
Because you add datadbIn this database, insteadbtss