Previous post I wrote about how to install MongoDB driver on PHP when we are using windows. In linux (I mean Ubuntu) there were no issues on installing that. So after that I want to connect to MongoDB to take data. <!DOCTYPE html><html> <head> <title>MongoDB Connection</title> </head> <body> <?php $m = new MongoClient(); $db = $m->phpdb; $col = $db->pageind; $rs ...
Previous post I wrote about how to install MongoDB driver on PHP when we are using windows. In Linux (I mean Ubuntu) there were no issues on installing that. So after that, I want to connect to MongoDB to take data. <!DOCTYPE html><html> <head> <title>MongoDB Connection</title> </head> <body> <?php $m = new MongoClient(); $db = $m->phpdb; $col = $db->pageind; $rs ...
Previous post I wrote about how to install MongoDB driver on PHP when we are using windows. In Linux (I mean Ubuntu) there were no issues on installing that. So after that, I want to connect to MongoDB to take data. <!DOCTYPE html><html> <head> <title>MongoDB Connection</title> </head> <body> <?php $m = new MongoClient(); $db = $m->phpdb; $col = $db->pageind; $rs ...
In Semester 3 I have PHP unfortunately not MongoDB. So I was doing PHP practicals while I was doing my office things. So suddenly MongoDB came to my mind. Then I tried to connect to MongoDB with PHP. Although I have already tried with .NET. I never tried MongoDB with PHP. So I installed IIS 8.0 and PHP 5.3.1. ...
In Semester 3 I have PHP unfortunately not MongoDB. So I was doing PHP practicals while I was doing my office things. So suddenly MongoDB came to my mind. Then I tried to connect to MongoDB with PHP. Although I have already tried with .NET. I never tried MongoDB with PHP. So I installed IIS 8.0 and PHP 5.3.1. Then ...
In Semester 3 I have PHP unfortunately not MongoDB. So I was doing PHP practicals while I was doing my office things. So suddenly MongoDB came to my mind. Then I tried to connect to MongoDB with PHP. Although I have already tried with .NET. I never tried MongoDB with PHP. So I installed IIS 8.0 and PHP 5.3.1. Then ...
I just wanted to setup a replication set in MongoDB to check the behavior of MongoDB replica set. For this demonstration I use MongoDB 2.2.0 and PowerShell 2.0. First I want to create directories for MongoDB replication instances. I’m going to for a replication set with three nodes. So because of the I need to create there MongoDB data directories. ...
I just wanted to set up a replication set in MongoDB to check the behaviour of MongoDB replica set.For this demonstration, I use MongoDB 2.2.0 and PowerShell 2.0. First I want to create directories for MongoDB replication instances. I’m going to for a replication set with three nodes. So because of them, I need to create there MongoDB data directories.New-Item ...
I just wanted to set up a replication set in MongoDB to check the behaviour of MongoDB replica set.For this demonstration, I use MongoDB 2.2.0 and PowerShell 2.0. First I want to create directories for MongoDB replication instances. I’m going to for a replication set with three nodes. So because of them, I need to create there MongoDB data directories.New-Item ...
Another good book for starter from Oreilly. If you don’t know how to save an HTML file with your notepad. You can learn it from this book too. And gradually the author moves to advanced topics. Also, this book contains CSS.The author doesn’t use confusable terminology. So it's really cool for novice people. I got addicted when reading the first ...
Another good book for starter from Oreilly. If you don’t know how to save a HTML file with your notepad. You can learn it from this book too. And gradually author moves to advanced topics. Also this book contains CSS. Author don’t use confusable terminology. So its really cool for novice people. I got addicted when reading first chapter. At ...
Another good book for starter from Oreilly. If you don’t know how to save an HTML file with your notepad. You can learn it from this book too. And gradually the author moves to advanced topics. Also, this book contains CSS.The author doesn’t use confusable terminology. So it's really cool for novice people. I got addicted when reading the first ...
When we are using DISTINCT we can’t use ORDER BY as we want. If you are going to use DISTINCT when you have ORDER BY, all ODER BY attributes should be in SELECT phrase. USE AdventureWorks2012;-- Works fineSELECT BusinessEntityIDFROM HumanResources.EmployeeORDER BY BirthDate;-- FailsSELECT DISTINCTBusinessEntityIDFROM HumanResources.EmployeeORDER BY BirthDate;-- If you are going to sort withdistinct result should consist attribute that you ...