diff --git a/answers.php b/answers.php index 3d21608..104cd6b 100644 --- a/answers.php +++ b/answers.php @@ -33,7 +33,7 @@ $connectionOptions = array( ConnectionOptions::OPTION_CREATE => true, // optionally create new collections when inserting documents ConnectionOptions::OPTION_UPDATE_POLICY => UpdatePolicy::LAST, - ConnectionOptions::OPTION_DATABASE => 'database', + ConnectionOptions::OPTION_DATABASE => $database, ); // open connection