title: Failed to connect to MySQL: Unknown database
body: <p>I am working on php at the moment and I am having problem with connecting to a server data base I am using MAMP 
  this is my code </p>
  
  <pre><code>&lt;?php
  $con = mysqli_connect('localhost','root','root','something');
  
  // Check connection 
   if (mysqli_connect_errno())
   {
   echo "Failed to connect to MySQL: " . mysqli_connect_error();
   }
   else
   {
     echo "string";
     }
    ?&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/h3YPe.png" alt="I did create my data base in my php admin as it&#39;s shown in the pic"></p>
  
  <p><img src="https://i.stack.imgur.com/Fa0IW.png" alt="2"></p>
  
  <p>I really hope you help me in my learning process </p>
  
  <p>this is the error massage I got 
  Failed to connect to MySQL: Unknown database 'something'</p>