Since days, we are trying to read our mango DB from an external PHP, hosted by a simple web provider. We need this in order to make a ladder for our guild.
We first tried to make Heroku to use our external MySQL database, but without success, so we used a MangoDB, but now we don’t know how to read it from our website.
I hope someone will help us, we really need…
Thank you and sorry for my english.
Are you using a platform (e.g. WordPress) or a framework (e.g. Symfony)? Do you block on a specific step (e.g. Connection)? More information we’ll have, more easily we could help you.
$client = new MongoDB\Client(
'mongodb+srv://x:x@x.x.mongodb.net/x?retryWrites=true&w=majority'
);
$db = $client->test;
?>
To connect on our db, with a VPS with node.js and the mango’s driver. But I don’t know how to read the content and show it on tables, I’m noob with db.