try {
$connection = new Mongo();
$database = $connection->selectDB('lib');
$collection = $database->selectCollection('autor');
}
catch(MongoConnectionException $e) {
die("Failed to connect to database ".$e->getMessage());
}
1
solved Parse error: syntax error, unexpected ‘}’ in C:\xampp\htdocs\lib\autors.php on line 8 [closed]