title: PHP says "No Database selected" even after using mysqli_select_db()
body: <p>I am writing a simple code to fetch 2 elements from a table in my database called Plasma.
  It seems the connection is being made well but I am unable to select any database due to unknown reason.</p>
  
  <p>Code :</p>
  
  <pre><code>&lt;?php
  $db  = "Plasma"; 
  $dbH = "localhost";
  $dbU = "plasma";
  $dbP = "plasma";
        $dbCon = mysqli_connect($dbH,$dbU,$dbP,$db);
          if(!dbCon){
              echo "Conenction Fail";
          }
          mysqli_select_db($dbCon,$db);
          $qry = "select Mid,Mname from ya_movies order by DOA limit 5;";
          $Response = mysqli_query($dbCon,$qry);
          echo mysqli_error($dbCon);                     ?&gt;
  </code></pre>
  
  <p>The Output is</p>
  
  <pre><code>No database selected
  </code></pre>