Author Archives: user

Khóa học miễn phí PHP & MongoDB – Display Collections nhận dự án làm có lương

PHP & MongoDB – Display Collections First step to do any operation is to create a Manager instance. // Connect to MongoDB using Manager Instance $manager = new MongoDBDriverManager(“mongodb://localhost:27017”); Second step is to prepare and execute a command on a database to show the list of collections available. // Create a Command Instance $collectionList = […]

Khóa học miễn phí PHP & MongoDB – Connect Database nhận dự án làm có lương

PHP & MongoDB – Connecting Database First step to do any operation is to create a Manager instance. // Connect to MongoDB using Manager Instance $manager = new MongoDBDriverManager(“mongodb://localhost:27017″); Second step is to prepare and execute a command on a database if the database doesn”t exist then MongoDB creates it automatically. // Create a Command […]

Khóa học miễn phí PHP & MongoDB – Drop Database nhận dự án làm có lương

PHP & MongoDB – Drop Database First step to do any operation is to create a Manager instance. // Connect to MongoDB using Manager Instance $manager = new MongoDBDriverManager(“mongodb://localhost:27017”); Second step is to prepare and execute a command to drop the database. // Create a Command Instance $dropDatabase = new MongoDBDriverCommand([“dropDatabase” => 1]); // Execute […]