Category Archives: php Mongodb

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

PHP & MongoDB – Delete Document 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 bulkWrite object to delete record(s) in the collection. // Create a BulkWrite Object $bulk = new MongoDBDriverBulkWrite([”ordered” => […]

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

PHP & MongoDB – Sorting Records 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 Query object to select record(s) in the collection and pass it filters and options to sort the records. […]